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
de69361b
Commit
de69361b
authored
Oct 15, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dispex/tests: Compile with -D__WINESRC__.
parent
b9cb6d4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/dispex/tests/Makefile.in
+0
-1
marshal.c
dlls/dispex/tests/marshal.c
+6
-6
No files found.
dlls/dispex/tests/Makefile.in
View file @
de69361b
TESTDLL
=
dispex.dll
IMPORTS
=
oleaut32 ole32 rpcrt4 user32 gdi32 advapi32
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
marshal.c
...
...
dlls/dispex/tests/marshal.c
View file @
de69361b
...
...
@@ -65,7 +65,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
hr
=
CoMarshalInterface
(
data
->
stream
,
&
data
->
iid
,
data
->
object
,
MSHCTX_INPROC
,
NULL
,
data
->
marshal_flags
);
/* 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
);
if
(
hr
==
S_OK
)
SetEvent
(
data
->
marshal_event
);
...
...
@@ -76,7 +76,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
return
hr
;
}
while
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
while
(
GetMessage
A
(
&
msg
,
NULL
,
0
,
0
))
{
if
(
msg
.
hwnd
==
NULL
&&
msg
.
message
==
RELEASEMARSHALDATA
)
{
...
...
@@ -85,7 +85,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
SetEvent
((
HANDLE
)
msg
.
lParam
);
}
else
DispatchMessage
(
&
msg
);
DispatchMessage
A
(
&
msg
);
}
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
@@ -105,8 +105,8 @@ static DWORD start_host_object2(IStream *stream, REFIID riid, IUnknown *object,
data
->
iid
=
*
riid
;
data
->
object
=
object
;
data
->
marshal_flags
=
marshal_flags
;
data
->
marshal_event
=
events
[
0
]
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
data
->
error_event
=
events
[
1
]
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
data
->
marshal_event
=
events
[
0
]
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
data
->
error_event
=
events
[
1
]
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
data
->
filter
=
filter
;
*
thread
=
CreateThread
(
NULL
,
0
,
host_object_proc
,
data
,
0
,
&
tid
);
...
...
@@ -131,7 +131,7 @@ static DWORD start_host_object(IStream *stream, REFIID riid, IUnknown *object, M
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