Module: wine
Branch: master
Commit: c1add0ff518cf2fce8b35052d1008c00782375fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1add0ff518cf2fce8b35052d…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Jun 18 20:48:54 2008 +0200
cabinet: Always use INT_PTR for handles.
---
dlls/cabinet/fdi.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index 47e36e8..454776a 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -121,7 +121,7 @@ typedef struct {
typedef struct fdi_cds_fwd {
void *hfdi; /* the hfdi we are using */
- int filehf, cabhf; /* file handle we are using */
+ INT_PTR filehf, cabhf; /* file handle we are using */
struct fdi_folder *current; /* current folder we're extracting from */
cab_ULONG offset; /* uncompressed offset within folder */
cab_UBYTE *outpos; /* (high level) start of data to use up */
@@ -2051,7 +2051,8 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
/* outlen=0 means this block was the last contiguous part
of a split block, continued in the next cabinet */
if (outlen == 0) {
- int pathlen, filenamelen, idx, i, cabhf;
+ int pathlen, filenamelen, idx, i;
+ INT_PTR cabhf;
char fullpath[MAX_PATH], userpath[256];
FDINOTIFICATION fdin;
FDICABINETINFO fdici;
@@ -2432,7 +2433,8 @@ BOOL __cdecl FDICopy(
{
FDICABINETINFO fdici;
FDINOTIFICATION fdin;
- int cabhf, filehf = 0, idx;
+ INT_PTR cabhf, filehf = 0;
+ int idx;
unsigned int i;
char fullpath[MAX_PATH];
size_t pathlen, filenamelen;