Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2009-01-02 03:00:00 +0300
committerKornel LesiƄski <kornel@geekhood.net>2016-05-28 02:15:59 +0300
commit1dc92281fa580c11a79fef9fc862a6ce354a76ac (patch)
tree3c577c4f310d36a3b351a51b04f7c13c44c2b584 /CPP/7zip/Archive
parent3a524e5ba2d7bb0c46e11502822f8093dd2ab0f4 (diff)
4.644.64
Diffstat (limited to 'CPP/7zip/Archive')
-rwxr-xr-xCPP/7zip/Archive/Zip/ZipHandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/CPP/7zip/Archive/Zip/ZipHandler.cpp b/CPP/7zip/Archive/Zip/ZipHandler.cpp
index 3054ae02..25cbd886 100755
--- a/CPP/7zip/Archive/Zip/ZipHandler.cpp
+++ b/CPP/7zip/Archive/Zip/ZipHandler.cpp
@@ -425,7 +425,7 @@ class CZipDecoder
CObjectVector<CMethodItem> methodItems;
public:
- CZipDecoder():
+ CZipDecoder():
_zipCryptoDecoderSpec(0),
_pkAesDecoderSpec(0),
_wzAesDecoderSpec(0),
@@ -662,11 +662,6 @@ HRESULT CZipDecoder::Decode(
if (wzAesMode)
{
result = _wzAesDecoderSpec->ReadHeader(inStream);
- if (result == S_OK)
- {
- if (!_wzAesDecoderSpec->CheckPasswordVerifyCode())
- result = S_FALSE;
- }
}
else if (pkAesMode)
{
@@ -689,6 +684,11 @@ HRESULT CZipDecoder::Decode(
RINOK(filterStreamSpec->SetInStream(inStream));
inStreamReleaser.FilterCoder = filterStreamSpec;
inStreamNew = filterStream;
+ if (wzAesMode)
+ {
+ if (!_wzAesDecoderSpec->CheckPasswordVerifyCode())
+ result = S_FALSE;
+ }
}
}
else