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
2de886dd
Commit
2de886dd
authored
Sep 14, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services/tests: Fix printf-style helper format (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b17d708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
service.c
programs/services/tests/service.c
+8
-1
No files found.
programs/services/tests/service.c
View file @
2de886dd
...
...
@@ -26,6 +26,12 @@
#include "wine/test.h"
#if !defined(__WINE_USE_MSVCRT) || defined(__MINGW32__)
#define __WINE_PRINTF_ATTR(fmt,args) __attribute__((format (printf,fmt,args)))
#else
#define __WINE_PRINTF_ATTR(fmt,args)
#endif
static
SERVICE_STATUS_HANDLE
(
WINAPI
*
pRegisterServiceCtrlHandlerExA
)(
LPCSTR
,
LPHANDLER_FUNCTION_EX
,
LPVOID
);
static
HANDLE
pipe_handle
=
INVALID_HANDLE_VALUE
;
...
...
@@ -56,6 +62,7 @@ static inline void service_event(const char *event)
send_msg
(
"EVENT"
,
event
);
}
static
void
WINAPIV
service_ok
(
int
cnd
,
const
char
*
msg
,
...)
__WINE_PRINTF_ATTR
(
2
,
3
);
static
void
WINAPIV
service_ok
(
int
cnd
,
const
char
*
msg
,
...)
{
__ms_va_list
valist
;
...
...
@@ -135,7 +142,7 @@ static BOOL CALLBACK monitor_enum_proc(HMONITOR hmon, HDC hdc, LPRECT lprc, LPAR
BOOL
r
;
MONITORINFOEXA
mi
;
service_ok
(
hmon
!=
NULL
,
"Unexpected hmon
=%#x
\n
"
,
hmon
);
service_ok
(
hmon
!=
NULL
,
"Unexpected hmon
%p
\n
"
,
hmon
);
monitor_count
++
;
...
...
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