Skip to content

Commit

Permalink
synopse#458: another fix for PasZip
Browse files Browse the repository at this point in the history
  • Loading branch information
zedxxx committed Dec 10, 2024
1 parent 4fe8e8d commit de707f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions PasZip.pas
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ function UpdateCrc32(aCRC32: cardinal; inBuf: pointer; inLen: integer): cardinal
{$ifdef MSWINDOWS}

type
{$ifdef ISDELPHI2010}
// The return type for FileCreate since Delphi 2010 has changed
// from an Integer type to THandle
TFileHandle = THandle;
{$else}
TFileHandle = integer;
{$endif ISDELPHI2010}

/// generic file information structure, as used in .zip file format
// - used in any header, contains info about following block
TFileInfo = packed record
Expand Down Expand Up @@ -246,7 +254,7 @@ function UpdateCrc32(aCRC32: cardinal; inBuf: pointer; inLen: integer): cardinal
// - can open a .zip archive file content from memory
TZipRead = class
private
file_, map: dword; // we use a memory mapped file to access the zip content
file_, map: THandle; // we use a memory mapped file to access the zip content
buf: PByteArray;
fZipStartOffset: cardinal;
fShowMessageBoxOnError: boolean;
Expand Down Expand Up @@ -295,7 +303,7 @@ TZipWrite = class
fMagic: cardinal;
public
/// the associated file handle
Handle: integer;
Handle: TFileHandle;
/// the total number of entries
Count: integer;
/// the resulting file entries
Expand Down
2 changes: 1 addition & 1 deletion SynopseCommit.inc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'1.18.7658'
'1.18.7659'

0 comments on commit de707f9

Please sign in to comment.