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
d175f154
Commit
d175f154
authored
Jan 10, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole: Report and clean up after PostMessage failures.
parent
a02cb3eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
rpc.c
dlls/ole32/rpc.c
+13
-3
No files found.
dlls/ole32/rpc.c
View file @
d175f154
...
...
@@ -254,7 +254,11 @@ static HRESULT WINAPI RpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER iface, RPC
TRACE
(
"Calling apartment thread 0x%08lx...
\n
"
,
apt
->
tid
);
PostMessageW
(
apt
->
win
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
);
if
(
!
PostMessageW
(
apt
->
win
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
))
{
ERR
(
"PostMessage failed with error %ld
\n
"
,
GetLastError
());
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
}
}
else
{
...
...
@@ -505,8 +509,14 @@ static void __RPC_STUB dispatch_rpc(RPC_MESSAGE *msg)
TRACE
(
"Calling apartment thread 0x%08lx...
\n
"
,
apt
->
tid
);
PostMessageW
(
apt
->
win
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
);
WaitForSingleObject
(
params
->
handle
,
INFINITE
);
if
(
PostMessageW
(
apt
->
win
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
))
WaitForSingleObject
(
params
->
handle
,
INFINITE
);
else
{
ERR
(
"PostMessage failed with error %ld
\n
"
,
GetLastError
());
IRpcChannelBuffer_Release
(
params
->
chan
);
IRpcStubBuffer_Release
(
params
->
stub
);
}
CloseHandle
(
params
->
handle
);
}
else
...
...
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