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
2a91838f
Commit
2a91838f
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Don't use sizeof in traces to avoid printf format warnings.
parent
96ad6881
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
rpc_message.c
dlls/rpcrt4/rpc_message.c
+1
-1
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+3
-3
rpcss_np_client.c
dlls/rpcrt4/rpcss_np_client.c
+1
-1
No files found.
dlls/rpcrt4/rpc_message.c
View file @
2a91838f
...
...
@@ -485,7 +485,7 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
/* read packet common header */
dwRead
=
rpcrt4_conn_read
(
Connection
,
&
common_hdr
,
sizeof
(
common_hdr
));
if
(
dwRead
!=
sizeof
(
common_hdr
))
{
WARN
(
"Short read of header, %ld
/%d bytes
\n
"
,
dwRead
,
sizeof
(
common_hdr
)
);
WARN
(
"Short read of header, %ld
bytes
\n
"
,
dwRead
);
status
=
RPC_S_PROTOCOL_ERROR
;
goto
fail
;
}
...
...
dlls/rpcrt4/rpc_transport.c
View file @
2a91838f
...
...
@@ -317,7 +317,7 @@ static RPC_STATUS rpcrt4_ncacn_np_parse_top_of_tower(const unsigned char *tower_
const
twr_empty_floor_t
*
smb_floor
=
(
const
twr_empty_floor_t
*
)
tower_data
;
const
twr_empty_floor_t
*
nb_floor
;
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
tower_data
,
tower_size
,
networkaddr
,
endpoint
);
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
tower_data
,
(
int
)
tower_size
,
networkaddr
,
endpoint
);
if
(
tower_size
<
sizeof
(
*
smb_floor
))
return
EPT_S_NOT_REGISTERED
;
...
...
@@ -408,7 +408,7 @@ static RPC_STATUS rpcrt4_ncalrpc_parse_top_of_tower(const unsigned char *tower_d
{
const
twr_empty_floor_t
*
pipe_floor
=
(
const
twr_empty_floor_t
*
)
tower_data
;
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
tower_data
,
tower_size
,
networkaddr
,
endpoint
);
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
tower_data
,
(
int
)
tower_size
,
networkaddr
,
endpoint
);
*
networkaddr
=
NULL
;
*
endpoint
=
NULL
;
...
...
@@ -642,7 +642,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *to
const
twr_ipv4_floor_t
*
ipv4_floor
;
struct
in_addr
in_addr
;
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
tower_data
,
tower_size
,
networkaddr
,
endpoint
);
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
tower_data
,
(
int
)
tower_size
,
networkaddr
,
endpoint
);
if
(
tower_size
<
sizeof
(
*
tcp_floor
))
return
EPT_S_NOT_REGISTERED
;
...
...
dlls/rpcrt4/rpcss_np_client.c
View file @
2a91838f
...
...
@@ -145,7 +145,7 @@ BOOL RPCRT4_SendReceiveNPMsg(HANDLE np, PRPCSS_NP_MESSAGE msg, char *vardata, PR
}
if
(
count
!=
sizeof
(
RPCSS_NP_REPLY
))
{
ERR
(
"read count mismatch. got %ld
, expected %u.
\n
"
,
count
,
sizeof
(
RPCSS_NP_REPLY
)
);
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