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
5f6ac9c4
Commit
5f6ac9c4
authored
Apr 20, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Use rpcrt4_conn_read in RPCRT4_OpenBinding.
parent
71fc596a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+2
-8
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+3
-0
rpc_message.c
dlls/rpcrt4/rpc_message.c
+2
-2
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
5f6ac9c4
...
...
@@ -435,7 +435,7 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection,
/* we need to send a binding packet if we are client. */
if
(
!
(
*
Connection
)
->
server
)
{
RpcPktHdr
*
hdr
;
DWORD
count
;
LONG
count
;
BYTE
*
response
;
RpcPktHdr
*
response_hdr
;
...
...
@@ -458,13 +458,7 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection,
return
E_OUTOFMEMORY
;
}
/* get a reply */
if
(
!
ReadFile
(
NewConnection
->
conn
,
response
,
RPC_MAX_PACKET_SIZE
,
&
count
,
NULL
))
{
WARN
(
"ReadFile failed with error %ld
\n
"
,
GetLastError
());
RPCRT4_DestroyConnection
(
*
Connection
);
return
RPC_S_PROTOCOL_ERROR
;
}
count
=
rpcrt4_conn_read
(
NewConnection
,
response
,
RPC_MAX_PACKET_SIZE
);
if
(
count
<
sizeof
(
response_hdr
->
common
))
{
WARN
(
"received invalid header
\n
"
);
RPCRT4_DestroyConnection
(
*
Connection
);
...
...
dlls/rpcrt4/rpc_binding.h
View file @
5f6ac9c4
...
...
@@ -83,4 +83,7 @@ BOOL RPCRT4_RPCSSOnDemandCall(PRPCSS_NP_MESSAGE msg, char *vardata_payload, PRPC
HANDLE
RPCRT4_GetMasterMutex
(
void
);
HANDLE
RPCRT4_RpcssNPConnect
(
void
);
int
rpcrt4_conn_read
(
RpcConnection
*
Connection
,
void
*
buffer
,
unsigned
int
count
);
#endif
dlls/rpcrt4/rpc_message.c
View file @
5f6ac9c4
...
...
@@ -306,8 +306,8 @@ RPC_STATUS RPCRT4_Send(RpcConnection *Connection, RpcPktHdr *Header,
*
* Reads data from a connection
*/
static
int
rpcrt4_conn_read
(
RpcConnection
*
Connection
,
void
*
buffer
,
unsigned
int
count
)
int
rpcrt4_conn_read
(
RpcConnection
*
Connection
,
void
*
buffer
,
unsigned
int
count
)
{
DWORD
dwRead
=
0
;
if
(
!
ReadFile
(
Connection
->
conn
,
buffer
,
count
,
&
dwRead
,
NULL
)
&&
...
...
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