File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,14 @@ function UpdateCrc32(aCRC32: cardinal; inBuf: pointer; inLen: integer): cardinal
179
179
{ $ifdef MSWINDOWS}
180
180
181
181
type
182
+ { $ifdef ISDELPHI2010}
183
+ // The return type for FileCreate since Delphi 2010 has changed
184
+ // from an Integer type to THandle
185
+ TFileHandle = THandle;
186
+ { $else}
187
+ TFileHandle = integer;
188
+ { $endif ISDELPHI2010}
189
+
182
190
// / generic file information structure, as used in .zip file format
183
191
// - used in any header, contains info about following block
184
192
TFileInfo = packed record
@@ -246,7 +254,7 @@ function UpdateCrc32(aCRC32: cardinal; inBuf: pointer; inLen: integer): cardinal
246
254
// - can open a .zip archive file content from memory
247
255
TZipRead = class
248
256
private
249
- file_, map: dword ; // we use a memory mapped file to access the zip content
257
+ file_, map: THandle ; // we use a memory mapped file to access the zip content
250
258
buf: PByteArray;
251
259
fZipStartOffset: cardinal;
252
260
fShowMessageBoxOnError: boolean;
@@ -295,7 +303,7 @@ TZipWrite = class
295
303
fMagic: cardinal;
296
304
public
297
305
// / the associated file handle
298
- Handle: integer ;
306
+ Handle: TFileHandle ;
299
307
// / the total number of entries
300
308
Count: integer;
301
309
// / the resulting file entries
Original file line number Diff line number Diff line change 1
- '1.18.7658 '
1
+ '1.18.7659 '
You can’t perform that action at this time.
0 commit comments