Pārlūkot izejas kodu

* loosened check that caused problems if zip had a few bytes appended.

git-svn-id: trunk@43086 -
marco 6 gadi atpakaļ
vecāks
revīzija
0a379def88
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/paszlib/src/zipper.pp

+ 1 - 1
packages/paszlib/src/zipper.pp

@@ -2312,7 +2312,7 @@ var
           AEndHdr := SwapECD(AEndHdr);
           {$ENDIF}
           if (AEndHdr.Signature = END_OF_CENTRAL_DIR_SIGNATURE) and
-             (I + SizeOf(AEndHdr) + AEndHdr.ZipFile_Comment_Length = BufSize) then
+             (I + SizeOf(AEndHdr) + AEndHdr.ZipFile_Comment_Length <= BufSize) then
           begin
             AEndHdrPos := FZipStream.Size - BufSize + I;
             FZipStream.Seek(AEndHdrPos + SizeOf(AEndHdr), soBeginning);