diff options
Diffstat (limited to 'src/thirdparty/unrar/rdwrfn.hpp')
-rw-r--r-- | src/thirdparty/unrar/rdwrfn.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/thirdparty/unrar/rdwrfn.hpp b/src/thirdparty/unrar/rdwrfn.hpp index c61128d77..a8508d60b 100644 --- a/src/thirdparty/unrar/rdwrfn.hpp +++ b/src/thirdparty/unrar/rdwrfn.hpp @@ -38,8 +38,8 @@ class ComprDataIO int64 *SubHeadPos; #ifndef RAR_NOCRYPT - CryptData Crypt; - CryptData Decrypt; + CryptData *Crypt; + CryptData *Decrypt; #endif @@ -49,6 +49,7 @@ class ComprDataIO public: ComprDataIO(); + ~ComprDataIO(); void Init(); int UnpRead(byte *Addr,size_t Count); void UnpWrite(byte *Addr,size_t Count); @@ -61,7 +62,7 @@ class ComprDataIO void SetCommand(CmdAdd *Cmd) {Command=Cmd;} void SetSubHeader(FileHeader *hd,int64 *Pos) {SubHead=hd;SubHeadPos=Pos;} void SetEncryption(bool Encrypt,CRYPT_METHOD Method,SecPassword *Password, - const byte *Salt,const byte *InitV,uint Lg2Cnt,byte *PswCheck,byte *HashKey); + const byte *Salt,const byte *InitV,uint Lg2Cnt,byte *HashKey,byte *PswCheck); void SetAV15Encryption(); void SetCmt13Encryption(); void SetUnpackToMemory(byte *Addr,uint Size); |