Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
98f89d46
Commit
98f89d46
authored
Jan 05, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Add CDECL to the cabinet callback functions.
parent
ac37f1b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cabinet_main.c
dlls/cabinet/cabinet_main.c
+8
-8
No files found.
dlls/cabinet/cabinet_main.c
View file @
98f89d46
...
...
@@ -69,17 +69,17 @@ HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
/* FDI callback functions */
static
void
*
mem_alloc
(
ULONG
cb
)
static
void
*
CDECL
mem_alloc
(
ULONG
cb
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
cb
);
}
static
void
mem_free
(
void
*
memory
)
static
void
CDECL
mem_free
(
void
*
memory
)
{
HeapFree
(
GetProcessHeap
(),
0
,
memory
);
}
static
INT_PTR
fdi_open
(
char
*
pszFile
,
int
oflag
,
int
pmode
)
static
INT_PTR
CDECL
fdi_open
(
char
*
pszFile
,
int
oflag
,
int
pmode
)
{
HANDLE
handle
;
DWORD
dwAccess
=
0
;
...
...
@@ -120,7 +120,7 @@ static INT_PTR fdi_open(char *pszFile, int oflag, int pmode)
return
(
INT_PTR
)
handle
;
}
static
UINT
fdi_read
(
INT_PTR
hf
,
void
*
pv
,
UINT
cb
)
static
UINT
CDECL
fdi_read
(
INT_PTR
hf
,
void
*
pv
,
UINT
cb
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
DWORD
dwRead
;
...
...
@@ -131,7 +131,7 @@ static UINT fdi_read(INT_PTR hf, void *pv, UINT cb)
return
0
;
}
static
UINT
fdi_write
(
INT_PTR
hf
,
void
*
pv
,
UINT
cb
)
static
UINT
CDECL
fdi_write
(
INT_PTR
hf
,
void
*
pv
,
UINT
cb
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
DWORD
dwWritten
;
...
...
@@ -142,13 +142,13 @@ static UINT fdi_write(INT_PTR hf, void *pv, UINT cb)
return
0
;
}
static
int
fdi_close
(
INT_PTR
hf
)
static
int
CDECL
fdi_close
(
INT_PTR
hf
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
return
CloseHandle
(
handle
)
?
0
:
-
1
;
}
static
long
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
);
...
...
@@ -182,7 +182,7 @@ static BOOL file_in_list(struct FILELIST *pNode, LPCSTR szFilename,
return
FALSE
;
}
static
INT_PTR
fdi_notify_extract
(
FDINOTIFICATIONTYPE
fdint
,
PFDINOTIFICATION
pfdin
)
static
INT_PTR
CDECL
fdi_notify_extract
(
FDINOTIFICATIONTYPE
fdint
,
PFDINOTIFICATION
pfdin
)
{
switch
(
fdint
)
{
...
...
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