Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f516cab0
Commit
f516cab0
authored
Jan 13, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Change to LONG/ULONG in fdi.h for Win64 compatibility.
parent
602f42c2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
cabinet_main.c
dlls/cabinet/cabinet_main.c
+1
-1
fdi.c
dlls/cabinet/tests/fdi.c
+4
-4
media.c
dlls/msi/media.c
+1
-1
setupcab.c
dlls/setupapi/setupcab.c
+1
-1
fdi.h
include/fdi.h
+8
-8
No files found.
dlls/cabinet/cabinet_main.c
View file @
f516cab0
...
@@ -148,7 +148,7 @@ static int CDECL fdi_close(INT_PTR hf)
...
@@ -148,7 +148,7 @@ static int CDECL fdi_close(INT_PTR hf)
return
CloseHandle
(
handle
)
?
0
:
-
1
;
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
;
HANDLE
handle
=
(
HANDLE
)
hf
;
return
SetFilePointer
(
handle
,
dist
,
NULL
,
seektype
);
return
SetFilePointer
(
handle
,
dist
,
NULL
,
seektype
);
...
...
dlls/cabinet/tests/fdi.c
View file @
f516cab0
...
@@ -81,7 +81,7 @@ static int CDECL fdi_close(INT_PTR hf)
...
@@ -81,7 +81,7 @@ static int CDECL fdi_close(INT_PTR hf)
return
CloseHandle
(
handle
)
?
0
:
-
1
;
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
;
HANDLE
handle
=
(
HANDLE
)
hf
;
return
SetFilePointer
(
handle
,
dist
,
NULL
,
seektype
);
return
SetFilePointer
(
handle
,
dist
,
NULL
,
seektype
);
...
@@ -548,7 +548,7 @@ static void test_FDIIsCabinet(void)
...
@@ -548,7 +548,7 @@ static void test_FDIIsCabinet(void)
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
ok
(
cabinfo
.
cbCabinet
==
0
,
"Expected 0, got %
l
d
\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
.
cFiles
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
cFiles
);
ok
(
cabinfo
.
cFolders
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
cFolders
);
ok
(
cabinfo
.
cFolders
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
cFolders
);
ok
(
cabinfo
.
iCabinet
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
iCabinet
);
ok
(
cabinfo
.
iCabinet
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
iCabinet
);
...
@@ -563,7 +563,7 @@ static void test_FDIIsCabinet(void)
...
@@ -563,7 +563,7 @@ static void test_FDIIsCabinet(void)
ret
=
FDIIsCabinet
(
hfdi
,
fd
,
&
cabinfo
);
ret
=
FDIIsCabinet
(
hfdi
,
fd
,
&
cabinfo
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
(
cabinfo
.
cbCabinet
==
0
,
"Expected 0, got %
l
d
\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
.
cFiles
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
cFiles
);
ok
(
cabinfo
.
cFolders
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
cFolders
);
ok
(
cabinfo
.
cFolders
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
cFolders
);
ok
(
cabinfo
.
iCabinet
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
iCabinet
);
ok
(
cabinfo
.
iCabinet
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
iCabinet
);
...
@@ -584,7 +584,7 @@ static void test_FDIIsCabinet(void)
...
@@ -584,7 +584,7 @@ static void test_FDIIsCabinet(void)
ok
(
cabinfo
.
setID
==
0xbeef
,
"Expected 0xbeef, got %d
\n
"
,
cabinfo
.
setID
);
ok
(
cabinfo
.
setID
==
0xbeef
,
"Expected 0xbeef, got %d
\n
"
,
cabinfo
.
setID
);
todo_wine
todo_wine
{
{
ok
(
cabinfo
.
cbCabinet
==
182
,
"Expected 182, got %
l
d
\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
);
ok
(
cabinfo
.
iCabinet
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
iCabinet
);
}
}
...
...
dlls/msi/media.c
View file @
f516cab0
...
@@ -219,7 +219,7 @@ static int CDECL cabinet_close(INT_PTR hf)
...
@@ -219,7 +219,7 @@ static int CDECL cabinet_close(INT_PTR hf)
return
CloseHandle
(
handle
)
?
0
:
-
1
;
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
;
HANDLE
handle
=
(
HANDLE
)
hf
;
/* flags are compatible and so are passed straight through */
/* flags are compatible and so are passed straight through */
...
...
dlls/setupapi/setupcab.c
View file @
f516cab0
...
@@ -250,7 +250,7 @@ static int CDECL sc_cb_close(INT_PTR hf)
...
@@ -250,7 +250,7 @@ static int CDECL sc_cb_close(INT_PTR hf)
return
-
1
;
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
;
DWORD
ret
;
...
...
include/fdi.h
View file @
f516cab0
...
@@ -32,10 +32,10 @@ extern "C" {
...
@@ -32,10 +32,10 @@ extern "C" {
* Common FCI/TDI declarations
* Common FCI/TDI declarations
*/
*/
typedef
unsigned
long
CHECKSUM
;
typedef
ULONG
CHECKSUM
;
typedef
unsigned
long
UOFF
;
typedef
ULONG
UOFF
;
typedef
unsigned
long
COFF
;
typedef
ULONG
COFF
;
/**********************************************************************/
/**********************************************************************/
...
@@ -143,7 +143,7 @@ typedef void *HFDI;
...
@@ -143,7 +143,7 @@ typedef void *HFDI;
/**********************************************************************/
/**********************************************************************/
typedef
struct
{
typedef
struct
{
long
cbCabinet
;
/* Total length of cabinet file */
LONG
cbCabinet
;
/* Total length of cabinet file */
USHORT
cFolders
;
/* Count of folders in cabinet */
USHORT
cFolders
;
/* Count of folders in cabinet */
USHORT
cFiles
;
/* Count of files in cabinet */
USHORT
cFiles
;
/* Count of files in cabinet */
USHORT
setID
;
/* Cabinet set ID */
USHORT
setID
;
/* Cabinet set ID */
...
@@ -217,14 +217,14 @@ typedef UINT (__cdecl *PFNWRITE)(INT_PTR hf, void *pv, UINT cb);
...
@@ -217,14 +217,14 @@ typedef UINT (__cdecl *PFNWRITE)(INT_PTR hf, void *pv, UINT cb);
typedef
int
(
__cdecl
*
PFNCLOSE
)(
INT_PTR
hf
);
typedef
int
(
__cdecl
*
PFNCLOSE
)(
INT_PTR
hf
);
#define FNCLOSE(fn) int __cdecl fn(INT_PTR hf)
#define FNCLOSE(fn) int __cdecl fn(INT_PTR hf)
typedef
long
(
__cdecl
*
PFNSEEK
)
(
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)
#define FNSEEK(fn)
LONG __cdecl fn(INT_PTR hf, LONG
dist, int seektype)
typedef
int
(
__cdecl
*
PFNFDIDECRYPT
)(
PFDIDECRYPT
pfdid
);
typedef
int
(
__cdecl
*
PFNFDIDECRYPT
)(
PFDIDECRYPT
pfdid
);
#define FNFDIDECRYPT(fn) int __cdecl fn(PFDIDECRYPT pfdid)
#define FNFDIDECRYPT(fn) int __cdecl fn(PFDIDECRYPT pfdid)
typedef
struct
{
typedef
struct
{
long
cb
;
LONG
cb
;
char
*
psz1
;
char
*
psz1
;
char
*
psz2
;
char
*
psz2
;
char
*
psz3
;
/* Points to a 256 character buffer */
char
*
psz3
;
/* Points to a 256 character buffer */
...
@@ -261,7 +261,7 @@ typedef INT_PTR (__cdecl *PFNFDINOTIFY)(FDINOTIFICATIONTYPE fdint,
...
@@ -261,7 +261,7 @@ typedef INT_PTR (__cdecl *PFNFDINOTIFY)(FDINOTIFICATIONTYPE fdint,
typedef
struct
{
typedef
struct
{
char
ach
[
2
];
/* Set to { '*', '\0' } */
char
ach
[
2
];
/* Set to { '*', '\0' } */
long
cbFile
;
/* Required spill file size */
LONG
cbFile
;
/* Required spill file size */
}
FDISPILLFILE
,
*
PFDISPILLFILE
;
}
FDISPILLFILE
,
*
PFDISPILLFILE
;
#include <poppack.h>
#include <poppack.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment