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
cb194006
Commit
cb194006
authored
Oct 16, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Compile with -D__WINESRC__.
parent
2f673f29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/oledb32/tests/Makefile.in
+0
-1
marshal.c
dlls/oledb32/tests/marshal.c
+6
-6
No files found.
dlls/oledb32/tests/Makefile.in
View file @
cb194006
TESTDLL
=
oledb32.dll
IMPORTS
=
uuid shell32 oleaut32 ole32 user32 gdi32 advapi32
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
convert.c
\
...
...
dlls/oledb32/tests/marshal.c
View file @
cb194006
...
...
@@ -66,11 +66,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
W
(
&
msg
,
NULL
,
WM_USER
,
WM_USER
,
PM_NOREMOVE
);
SetEvent
(
data
->
marshal_event
);
while
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
while
(
GetMessage
W
(
&
msg
,
NULL
,
0
,
0
))
{
if
(
msg
.
hwnd
==
NULL
&&
msg
.
message
==
RELEASEMARSHALDATA
)
{
...
...
@@ -78,7 +78,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
SetEvent
((
HANDLE
)
msg
.
lParam
);
}
else
DispatchMessage
(
&
msg
);
DispatchMessage
W
(
&
msg
);
}
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
@@ -91,7 +91,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
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
struct
host_object_data
*
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
));
data
->
stream
=
stream
;
...
...
@@ -117,8 +117,8 @@ 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
);
ok
(
ret
,
"PostThreadMessage failed with error %d
\n
"
,
GetLastError
());
BOOL
ret
=
PostThreadMessage
W
(
tid
,
WM_QUIT
,
0
,
0
);
ok
(
ret
,
"PostThreadMessage
W
failed with error %d
\n
"
,
GetLastError
());
/* be careful of races - don't return until hosting thread has terminated */
ok
(
!
WaitForSingleObject
(
thread
,
10000
),
"wait timed out
\n
"
);
CloseHandle
(
thread
);
...
...
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