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
3e103dca
Commit
3e103dca
authored
Apr 19, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Apr 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent crashes in I_RpcSend on Windows XP.
parent
d1051870
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
rpc_message.c
dlls/rpcrt4/rpc_message.c
+3
-2
No files found.
dlls/rpcrt4/rpc_message.c
View file @
3e103dca
...
...
@@ -92,6 +92,7 @@ RPC_STATUS WINAPI I_RpcSend(PRPC_MESSAGE pMsg)
UUID
*
act
;
RPC_STATUS
status
;
RpcPktHdr
hdr
;
DWORD
count
;
TRACE
(
"(%p)
\n
"
,
pMsg
);
if
(
!
bind
)
return
RPC_S_INVALID_BINDING
;
...
...
@@ -131,7 +132,7 @@ RPC_STATUS WINAPI I_RpcSend(PRPC_MESSAGE pMsg)
hdr
.
len
=
pMsg
->
BufferLength
;
/* transmit packet */
if
(
!
WriteFile
(
conn
->
conn
,
&
hdr
,
sizeof
(
hdr
),
NULL
,
NULL
))
{
if
(
!
WriteFile
(
conn
->
conn
,
&
hdr
,
sizeof
(
hdr
),
&
count
,
NULL
))
{
WARN
(
"WriteFile failed with error %ld
\n
"
,
GetLastError
());
status
=
RPC_S_PROTOCOL_ERROR
;
goto
fail
;
...
...
@@ -143,7 +144,7 @@ RPC_STATUS WINAPI I_RpcSend(PRPC_MESSAGE pMsg)
goto
fail
;
}
if
(
!
WriteFile
(
conn
->
conn
,
pMsg
->
Buffer
,
pMsg
->
BufferLength
,
NULL
,
NULL
))
{
if
(
!
WriteFile
(
conn
->
conn
,
pMsg
->
Buffer
,
pMsg
->
BufferLength
,
&
count
,
NULL
))
{
WARN
(
"WriteFile failed with error %ld
\n
"
,
GetLastError
());
status
=
RPC_S_PROTOCOL_ERROR
;
goto
fail
;
...
...
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