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
753affe4
Commit
753affe4
authored
Jan 13, 2009
by
Austin English
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add tests for CoInitializeEx.
parent
2f272389
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
compobj.c
dlls/ole32/tests/compobj.c
+22
-0
No files found.
dlls/ole32/tests/compobj.c
View file @
753affe4
...
...
@@ -1017,6 +1017,27 @@ static void test_CoGetObjectContext(void)
CoUninitialize
();
}
static
void
test_CoInitializeEx
(
void
)
{
HRESULT
hr
;
hr
=
pCoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
);
ok
(
hr
==
S_OK
,
"CoInitializeEx failed with error 0x%08x
\n
"
,
hr
);
/* Calling OleInitialize for the first time should yield S_OK even with
* apartment already initialized by previous CoInitialize(Ex) calls. */
hr
=
OleInitialize
(
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"OleInitialize failed with error 0x%08x
\n
"
,
hr
);
/* Subsequent calls to OleInitialize should return S_FALSE */
hr
=
OleInitialize
(
NULL
);
ok
(
hr
==
S_FALSE
,
"Expected S_FALSE, hr = 0x%08x
\n
"
,
hr
);
/* Cleanup */
CoUninitialize
();
OleUninitialize
();
}
START_TEST
(
compobj
)
{
HMODULE
hOle32
=
GetModuleHandle
(
"ole32"
);
...
...
@@ -1045,4 +1066,5 @@ START_TEST(compobj)
test_registered_object_thread_affinity
();
test_CoFreeUnusedLibraries
();
test_CoGetObjectContext
();
test_CoInitializeEx
();
}
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