FIX: Error check condition

This commit is contained in:
Alexander Koblov 2017-11-30 17:33:02 +00:00
commit ea044b7777
2 changed files with 2 additions and 2 deletions

View file

@ -1127,7 +1127,7 @@ begin
else begin
Wrong := not TAbWinZipAesDecryptStream(aInStream).Verify;
if TAbWinZipAesDecryptStream(aInStream).ExtraField.Version = 1 then
Wrong := Wrong and (OutStream.CRC32 <> aItem.CRC32);
Wrong := Wrong or (OutStream.CRC32 <> aItem.CRC32);
end;
if Wrong then
begin

View file

@ -1845,7 +1845,7 @@ Index: AbUnzPrc.pas
+ else begin
+ Wrong := not TAbWinZipAesDecryptStream(aInStream).Verify;
+ if TAbWinZipAesDecryptStream(aInStream).ExtraField.Version = 1 then
+ Wrong := Wrong and (OutStream.CRC32 <> aItem.CRC32);
+ Wrong := Wrong or (OutStream.CRC32 <> aItem.CRC32);
+ end;
+ if Wrong then
+ begin