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
46a5f913
Commit
46a5f913
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcss: Don't use sizeof in traces to avoid printf format warnings.
parent
1f39252d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
np_server.c
programs/rpcss/np_server.c
+4
-5
No files found.
programs/rpcss/np_server.c
View file @
46a5f913
...
...
@@ -204,8 +204,8 @@ static VOID HandlerThread(LPVOID lpvPipeHandle)
);
if
(
(
!
success
)
||
(
bytesread
!=
sizeof
(
RPCSS_NP_MESSAGE
))
||
(
vardata_payload_msg
.
message_type
!=
RPCSS_NP_MESSAGE_TYPEID_VARDATAPAYLOADMSG
)
)
{
WINE_ERR
(
"vardata payload read failure! (s=%s,br=%ld,
exp_br=%d,
mt=%u,mt_exp=%u
\n
"
,
success
?
"TRUE"
:
"FALSE"
,
bytesread
,
sizeof
(
RPCSS_NP_MESSAGE
),
WINE_ERR
(
"vardata payload read failure! (s=%s,br=%ld,mt=%u,mt_exp=%u
\n
"
,
success
?
"TRUE"
:
"FALSE"
,
bytesread
,
vardata_payload_msg
.
message_type
,
RPCSS_NP_MESSAGE_TYPEID_VARDATAPAYLOADMSG
);
success
=
FALSE
;
break
;
...
...
@@ -237,8 +237,7 @@ static VOID HandlerThread(LPVOID lpvPipeHandle)
);
if
(
(
!
success
)
||
(
written
!=
sizeof
(
RPCSS_NP_REPLY
))
)
WINE_WARN
(
"Message reply failed. (successs=%s, br=%ld, exp_br=%d)
\n
"
,
success
?
"TRUE"
:
"FALSE"
,
written
,
sizeof
(
RPCSS_NP_REPLY
));
WINE_WARN
(
"Message reply failed. (success=%d, br=%ld)
\n
"
,
success
,
written
);
else
WINE_TRACE
(
"Reply sent successfully.
\n
"
);
}
else
...
...
@@ -426,7 +425,7 @@ static BOOL RPCSS_SendReceiveNPMsg(HANDLE np, PRPCSS_NP_MESSAGE msg, PRPCSS_NP_R
}
if
(
count
!=
sizeof
(
RPCSS_NP_REPLY
))
{
WINE_ERR
(
"read count mismatch
. got %ld, expected %u.
\n
"
,
count
,
sizeof
(
RPCSS_NP_REPLY
)
);
WINE_ERR
(
"read count mismatch
, got %ld.
\n
"
,
count
);
return
FALSE
;
}
...
...
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