include: Change to LONG/ULONG in fdi.h for Win64 compatibility.
diff --git a/include/fdi.h b/include/fdi.h index 708642a..ef97958 100644 --- a/include/fdi.h +++ b/include/fdi.h
@@ -32,10 +32,10 @@ * Common FCI/TDI declarations */ -typedef unsigned long CHECKSUM; +typedef ULONG CHECKSUM; -typedef unsigned long UOFF; -typedef unsigned long COFF; +typedef ULONG UOFF; +typedef ULONG COFF; /**********************************************************************/ @@ -143,7 +143,7 @@ /**********************************************************************/ typedef struct { - long cbCabinet; /* Total length of cabinet file */ + LONG cbCabinet; /* Total length of cabinet file */ USHORT cFolders; /* Count of folders in cabinet */ USHORT cFiles; /* Count of files in cabinet */ USHORT setID; /* Cabinet set ID */ @@ -217,14 +217,14 @@ typedef int (__cdecl *PFNCLOSE)(INT_PTR hf); #define FNCLOSE(fn) int __cdecl fn(INT_PTR hf) -typedef long (__cdecl *PFNSEEK) (INT_PTR hf, long dist, int seektype); -#define FNSEEK(fn) long __cdecl fn(INT_PTR hf, long dist, int seektype) +typedef LONG (__cdecl *PFNSEEK) (INT_PTR hf, LONG dist, int seektype); +#define FNSEEK(fn) LONG __cdecl fn(INT_PTR hf, LONG dist, int seektype) typedef int (__cdecl *PFNFDIDECRYPT)(PFDIDECRYPT pfdid); #define FNFDIDECRYPT(fn) int __cdecl fn(PFDIDECRYPT pfdid) typedef struct { - long cb; + LONG cb; char *psz1; char *psz2; char *psz3; /* Points to a 256 character buffer */ @@ -261,7 +261,7 @@ typedef struct { char ach[2]; /* Set to { '*', '\0' } */ - long cbFile; /* Required spill file size */ + LONG cbFile; /* Required spill file size */ } FDISPILLFILE, *PFDISPILLFILE; #include <poppack.h>