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
54b883ef
Commit
54b883ef
authored
Oct 24, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Fix tmarshal tests compilation with __WINESRC__ defined.
parent
5cf89fd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+7
-7
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
54b883ef
...
...
@@ -80,11 +80,11 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
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
);
PeekMessage
A
(
&
msg
,
NULL
,
WM_USER
,
WM_USER
,
PM_NOREMOVE
);
SetEvent
(
data
->
marshal_event
);
while
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
while
(
GetMessage
A
(
&
msg
,
NULL
,
0
,
0
))
{
if
(
msg
.
hwnd
==
NULL
&&
msg
.
message
==
RELEASEMARSHALDATA
)
{
...
...
@@ -93,7 +93,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
SetEvent
((
HANDLE
)
msg
.
lParam
);
}
else
DispatchMessage
(
&
msg
);
DispatchMessage
A
(
&
msg
);
}
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
@@ -106,7 +106,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
static
DWORD
start_host_object2
(
IStream
*
stream
,
REFIID
riid
,
IUnknown
*
object
,
MSHLFLAGS
marshal_flags
,
IMessageFilter
*
filter
,
HANDLE
*
thread
)
{
DWORD
tid
=
0
;
HANDLE
marshal_event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
HANDLE
marshal_event
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
struct
host_object_data
*
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
));
data
->
stream
=
stream
;
...
...
@@ -135,8 +135,8 @@ static DWORD start_host_object(IStream *stream, REFIID riid, IUnknown *object, M
* same thread that marshaled the interface in the first place. */
static void release_host_object(DWORD tid)
{
HANDLE event = CreateEvent(NULL, FALSE, FALSE, NULL);
PostThreadMessage(tid, RELEASEMARSHALDATA, 0, (LPARAM)event);
HANDLE event = CreateEvent
A
(NULL, FALSE, FALSE, NULL);
PostThreadMessage
A
(tid, RELEASEMARSHALDATA, 0, (LPARAM)event);
WaitForSingleObject(event, INFINITE);
CloseHandle(event);
}
...
...
@@ -144,7 +144,7 @@ static void release_host_object(DWORD tid)
static
void
end_host_object
(
DWORD
tid
,
HANDLE
thread
)
{
BOOL
ret
=
PostThreadMessage
(
tid
,
WM_QUIT
,
0
,
0
);
BOOL
ret
=
PostThreadMessage
A
(
tid
,
WM_QUIT
,
0
,
0
);
ok
(
ret
,
"PostThreadMessage failed with error %d
\n
"
,
GetLastError
());
/* be careful of races - don't return until hosting thread has terminated */
WaitForSingleObject
(
thread
,
INFINITE
);
...
...
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