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
ba0475e7
Commit
ba0475e7
authored
Jan 14, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Jan 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force context switch on chanbuf disconnect to avoid a race in the test
suite.
parent
7b3d092c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
rpc.c
dlls/ole32/rpc.c
+10
-0
No files found.
dlls/ole32/rpc.c
View file @
ba0475e7
...
...
@@ -302,6 +302,7 @@ PipeBuf_Release(LPRPCCHANNELBUFFER iface) {
wine_rpc_disconnect_header
header
;
HANDLE
pipe
;
DWORD
reqtype
=
REQTYPE_DISCONNECT
;
DWORD
magic
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
)
...
...
@@ -316,6 +317,12 @@ PipeBuf_Release(LPRPCCHANNELBUFFER iface) {
TRACE
(
"written disconnect packet
\n
"
);
/* prevent a disconnect race with the other side: this isn't
* necessary for real dcom but the test suite needs it */
read_pipe
(
pipe
,
&
magic
,
sizeof
(
magic
));
if
(
magic
!=
0xcafebabe
)
ERR
(
"bad disconnection magic: expecting 0xcafebabe but got 0x%lx"
,
magic
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
}
...
...
@@ -776,6 +783,7 @@ COM_RpcReceive(wine_pipe *xpipe) {
if
(
reqtype
==
REQTYPE_DISCONNECT
)
{
/* only received by servers */
wine_rpc_disconnect_header
header
;
struct
stub_manager
*
stubmgr
;
DWORD
magic
=
0xcafebabe
;
hres
=
read_pipe
(
xhPipe
,
&
header
,
sizeof
(
header
));
if
(
hres
)
{
...
...
@@ -795,6 +803,8 @@ COM_RpcReceive(wine_pipe *xpipe) {
stub_manager_int_release
(
stubmgr
);
write_pipe
(
xhPipe
,
&
magic
,
sizeof
(
magic
));
goto
end
;
}
else
if
(
reqtype
==
REQTYPE_REQUEST
)
{
wine_rpc_request
*
xreq
;
...
...
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