Skip to content

Commit

Permalink
fixed TZipRead.RetrieveFileInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Dec 29, 2021
1 parent 4abb9f4 commit d703e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mormot.core.zip.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2407,7 +2407,7 @@ function TZipRead.RetrieveFileInfo(Index: integer;
raise ESynZip.CreateUtf8('%: data descriptor read error on % %',
[self, e^.zipName, fFileName]);
descmin := PtrUInt(@tmp);
desc := @tmp[tmpLen];
desc := pointer(descmin + tmpLen);
e := nil; // indicates below that descmin does not match zipSize
end;
dec(desc);
Expand Down

0 comments on commit d703e72

Please sign in to comment.