include: Change to LONG/ULONG in fdi.h for Win64 compatibility.

This commit is contained in:
Michael Stefaniuc 2009-01-13 23:31:50 +01:00 committed by Alexandre Julliard
parent 602f42c25f
commit f516cab017
5 changed files with 15 additions and 15 deletions

View File

@ -148,7 +148,7 @@ static int CDECL fdi_close(INT_PTR hf)
return CloseHandle(handle) ? 0 : -1;
}
static long CDECL fdi_seek(INT_PTR hf, long dist, int seektype)
static LONG CDECL fdi_seek(INT_PTR hf, LONG dist, int seektype)
{
HANDLE handle = (HANDLE) hf;
return SetFilePointer(handle, dist, NULL, seektype);

View File

@ -81,7 +81,7 @@ static int CDECL fdi_close(INT_PTR hf)
return CloseHandle(handle) ? 0 : -1;
}
static long CDECL fdi_seek(INT_PTR hf, long dist, int seektype)
static LONG CDECL fdi_seek(INT_PTR hf, LONG dist, int seektype)
{
HANDLE handle = (HANDLE) hf;
return SetFilePointer(handle, dist, NULL, seektype);
@ -548,7 +548,7 @@ static void test_FDIIsCabinet(void)
ok(ret == FALSE, "Expected FALSE, got %d\n", ret);
ok(GetLastError() == ERROR_INVALID_HANDLE,
"Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
ok(cabinfo.cbCabinet == 0, "Expected 0, got %ld\n", cabinfo.cbCabinet);
ok(cabinfo.cbCabinet == 0, "Expected 0, got %d\n", cabinfo.cbCabinet);
ok(cabinfo.cFiles == 0, "Expected 0, got %d\n", cabinfo.cFiles);
ok(cabinfo.cFolders == 0, "Expected 0, got %d\n", cabinfo.cFolders);
ok(cabinfo.iCabinet == 0, "Expected 0, got %d\n", cabinfo.iCabinet);
@ -563,7 +563,7 @@ static void test_FDIIsCabinet(void)
ret = FDIIsCabinet(hfdi, fd, &cabinfo);
ok(ret == FALSE, "Expected FALSE, got %d\n", ret);
ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError());
ok(cabinfo.cbCabinet == 0, "Expected 0, got %ld\n", cabinfo.cbCabinet);
ok(cabinfo.cbCabinet == 0, "Expected 0, got %d\n", cabinfo.cbCabinet);
ok(cabinfo.cFiles == 0, "Expected 0, got %d\n", cabinfo.cFiles);
ok(cabinfo.cFolders == 0, "Expected 0, got %d\n", cabinfo.cFolders);
ok(cabinfo.iCabinet == 0, "Expected 0, got %d\n", cabinfo.iCabinet);
@ -584,7 +584,7 @@ static void test_FDIIsCabinet(void)
ok(cabinfo.setID == 0xbeef, "Expected 0xbeef, got %d\n", cabinfo.setID);
todo_wine
{
ok(cabinfo.cbCabinet == 182, "Expected 182, got %ld\n", cabinfo.cbCabinet);
ok(cabinfo.cbCabinet == 182, "Expected 182, got %d\n", cabinfo.cbCabinet);
ok(cabinfo.iCabinet == 0, "Expected 0, got %d\n", cabinfo.iCabinet);
}

View File

@ -219,7 +219,7 @@ static int CDECL cabinet_close(INT_PTR hf)
return CloseHandle(handle) ? 0 : -1;
}
static long CDECL cabinet_seek(INT_PTR hf, long dist, int seektype)
static LONG CDECL cabinet_seek(INT_PTR hf, LONG dist, int seektype)
{
HANDLE handle = (HANDLE)hf;
/* flags are compatible and so are passed straight through */

View File

@ -250,7 +250,7 @@ static int CDECL sc_cb_close(INT_PTR hf)
return -1;
}
static long CDECL sc_cb_lseek(INT_PTR hf, long dist, int seektype)
static LONG CDECL sc_cb_lseek(INT_PTR hf, LONG dist, int seektype)
{
DWORD ret;

View File

@ -32,10 +32,10 @@ extern "C" {
* 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 void *HFDI;
/**********************************************************************/
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 UINT (__cdecl *PFNWRITE)(INT_PTR hf, void *pv, UINT cb);
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 INT_PTR (__cdecl *PFNFDINOTIFY)(FDINOTIFICATIONTYPE fdint,
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>