Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
d7ca3dd2
Commit
d7ca3dd2
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
advpack/tests: Add CDECL to the cabinet callback functions.
parent
558732ef
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/advpack/tests/files.c
+15
-15
15 additions, 15 deletions
dlls/advpack/tests/files.c
with
15 additions
and
15 deletions
dlls/advpack/tests/files.c
+
15
−
15
View file @
d7ca3dd2
...
...
@@ -174,33 +174,33 @@ static void test_AddDelBackupEntry(void)
/* the FCI callbacks */
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
BOOL
get_next_cabinet
(
PCCAB
pccab
,
ULONG
cbPrevCab
,
void
*
pv
)
static
BOOL
CDECL
get_next_cabinet
(
PCCAB
pccab
,
ULONG
cbPrevCab
,
void
*
pv
)
{
return
TRUE
;
}
static
long
progress
(
UINT
typeStatus
,
ULONG
cb1
,
ULONG
cb2
,
void
*
pv
)
static
long
CDECL
progress
(
UINT
typeStatus
,
ULONG
cb1
,
ULONG
cb2
,
void
*
pv
)
{
return
0
;
}
static
int
file_placed
(
PCCAB
pccab
,
char
*
pszFile
,
long
cbFile
,
BOOL
fContinuation
,
void
*
pv
)
static
int
CDECL
file_placed
(
PCCAB
pccab
,
char
*
pszFile
,
long
cbFile
,
BOOL
fContinuation
,
void
*
pv
)
{
return
0
;
}
static
INT_PTR
fci_open
(
char
*
pszFile
,
int
oflag
,
int
pmode
,
int
*
err
,
void
*
pv
)
static
INT_PTR
CDECL
fci_open
(
char
*
pszFile
,
int
oflag
,
int
pmode
,
int
*
err
,
void
*
pv
)
{
HANDLE
handle
;
DWORD
dwAccess
=
0
;
...
...
@@ -224,7 +224,7 @@ static INT_PTR fci_open(char *pszFile, int oflag, int pmode, int *err, void *pv)
return
(
INT_PTR
)
handle
;
}
static
UINT
fci_read
(
INT_PTR
hf
,
void
*
memory
,
UINT
cb
,
int
*
err
,
void
*
pv
)
static
UINT
CDECL
fci_read
(
INT_PTR
hf
,
void
*
memory
,
UINT
cb
,
int
*
err
,
void
*
pv
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
DWORD
dwRead
;
...
...
@@ -236,7 +236,7 @@ static UINT fci_read(INT_PTR hf, void *memory, UINT cb, int *err, void *pv)
return
dwRead
;
}
static
UINT
fci_write
(
INT_PTR
hf
,
void
*
memory
,
UINT
cb
,
int
*
err
,
void
*
pv
)
static
UINT
CDECL
fci_write
(
INT_PTR
hf
,
void
*
memory
,
UINT
cb
,
int
*
err
,
void
*
pv
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
DWORD
dwWritten
;
...
...
@@ -248,7 +248,7 @@ static UINT fci_write(INT_PTR hf, void *memory, UINT cb, int *err, void *pv)
return
dwWritten
;
}
static
int
fci_close
(
INT_PTR
hf
,
int
*
err
,
void
*
pv
)
static
int
CDECL
fci_close
(
INT_PTR
hf
,
int
*
err
,
void
*
pv
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
ok
(
CloseHandle
(
handle
),
"Failed to CloseHandle
\n
"
);
...
...
@@ -256,7 +256,7 @@ static int fci_close(INT_PTR hf, int *err, void *pv)
return
0
;
}
static
long
fci_seek
(
INT_PTR
hf
,
long
dist
,
int
seektype
,
int
*
err
,
void
*
pv
)
static
long
CDECL
fci_seek
(
INT_PTR
hf
,
long
dist
,
int
seektype
,
int
*
err
,
void
*
pv
)
{
HANDLE
handle
=
(
HANDLE
)
hf
;
DWORD
ret
;
...
...
@@ -267,7 +267,7 @@ static long fci_seek(INT_PTR hf, long dist, int seektype, int *err, void *pv)
return
ret
;
}
static
int
fci_delete
(
char
*
pszFile
,
int
*
err
,
void
*
pv
)
static
int
CDECL
fci_delete
(
char
*
pszFile
,
int
*
err
,
void
*
pv
)
{
BOOL
ret
=
DeleteFileA
(
pszFile
);
ok
(
ret
,
"Failed to DeleteFile %s
\n
"
,
pszFile
);
...
...
@@ -275,7 +275,7 @@ static int fci_delete(char *pszFile, int *err, void *pv)
return
0
;
}
static
BOOL
get_temp_file
(
char
*
pszTempName
,
int
cbTempName
,
void
*
pv
)
static
BOOL
CDECL
get_temp_file
(
char
*
pszTempName
,
int
cbTempName
,
void
*
pv
)
{
LPSTR
tempname
;
...
...
@@ -294,8 +294,8 @@ static BOOL get_temp_file(char *pszTempName, int cbTempName, void *pv)
return
FALSE
;
}
static
INT_PTR
get_open_info
(
char
*
pszName
,
USHORT
*
pdate
,
USHORT
*
ptime
,
USHORT
*
pattribs
,
int
*
err
,
void
*
pv
)
static
INT_PTR
CDECL
get_open_info
(
char
*
pszName
,
USHORT
*
pdate
,
USHORT
*
ptime
,
USHORT
*
pattribs
,
int
*
err
,
void
*
pv
)
{
BY_HANDLE_FILE_INFORMATION
finfo
;
FILETIME
filetime
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment