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
a80b183a
Commit
a80b183a
authored
Apr 21, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Ok_() takes printf-style arguments.
This lets the compiler check that the format and argument sizes match.
parent
b6fb1b89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
custom.c
dlls/msi/tests/custom.c
+7
-1
No files found.
dlls/msi/tests/custom.c
View file @
a80b183a
...
...
@@ -32,9 +32,15 @@
#include <msiquery.h>
#include <msidefs.h>
#if defined(__MINGW32__) || (!defined(__WINE_USE_MSVCRT) && (defined(__GNUC__) || defined(__clang__)))
#define __WINE_PRINTF_ATTR(fmt,args) __attribute__((format (printf,fmt,args)))
#else
#define __WINE_PRINTF_ATTR(fmt,args)
#endif
static
int
todo_level
,
todo_do_loop
;
static
void
WINAPIV
ok_
(
MSIHANDLE
hinst
,
int
todo
,
const
char
*
file
,
int
line
,
int
condition
,
const
char
*
msg
,
...)
static
void
WINAPIV
__WINE_PRINTF_ATTR
(
6
,
7
)
ok_
(
MSIHANDLE
hinst
,
int
todo
,
const
char
*
file
,
int
line
,
int
condition
,
const
char
*
msg
,
...)
{
static
char
buffer
[
2000
];
MSIHANDLE
record
;
...
...
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