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
de95de18
Commit
de95de18
authored
Jan 12, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Force creation of thread queue to stop PostThreadMessage from
failing. - Remove incorrect comment.
parent
a33c7d89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
marshal.c
dlls/ole32/tests/marshal.c
+5
-4
No files found.
dlls/ole32/tests/marshal.c
View file @
de95de18
...
...
@@ -139,6 +139,9 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
hr
=
CoMarshalInterface
(
data
->
stream
,
&
data
->
iid
,
data
->
object
,
MSHCTX_INPROC
,
NULL
,
data
->
marshal_flags
);
ok_ole_success
(
hr
,
CoMarshalInterface
);
/* force the message queue to be created before signaling parent thread */
PeekMessage
(
&
msg
,
NULL
,
WM_USER
,
WM_USER
,
PM_NOREMOVE
);
SetEvent
(
data
->
marshal_event
);
while
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
...
...
@@ -199,7 +202,8 @@ static void release_host_object(DWORD tid)
static
void
end_host_object
(
DWORD
tid
,
HANDLE
thread
)
{
PostThreadMessage
(
tid
,
WM_QUIT
,
0
,
0
);
BOOL
ret
=
PostThreadMessage
(
tid
,
WM_QUIT
,
0
,
0
);
ok
(
ret
,
"PostThreadMessage failed with error %ld
\n
"
,
GetLastError
());
/* be careful of races - don't return until hosting thread has terminated */
WaitForSingleObject
(
thread
,
INFINITE
);
CloseHandle
(
thread
);
...
...
@@ -346,9 +350,6 @@ static void test_marshal_proxy_apartment_shutdown()
CoUninitialize
();
/* FIXME: this could be a bit racy - I don't know if there are any
* guarantees that the stub will get its disconnection message
* immediately */
todo_wine
{
ok_no_locks
();
}
IUnknown_Release
(
pProxy
);
...
...
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