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
4bca67bd
Commit
4bca67bd
authored
Feb 21, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/tests: Initialize COM only for tests that need it.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b91fbb1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+4
-4
No files found.
dlls/mfreadwrite/tests/mfplat.c
View file @
4bca67bd
...
...
@@ -96,6 +96,8 @@ static void test_factory(void)
IMFReadWriteClassFactory
*
factory
,
*
factory2
;
HRESULT
hr
;
CoInitialize
(
NULL
);
hr
=
CoCreateInstance
(
&
CLSID_MFReadWriteClassFactory
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMFReadWriteClassFactory
,
(
void
**
)
&
factory
);
ok
(
hr
==
S_OK
,
"Failed to create class factory, hr %#x.
\n
"
,
hr
);
...
...
@@ -105,14 +107,14 @@ static void test_factory(void)
ok
(
hr
==
CLASS_E_NOAGGREGATION
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFReadWriteClassFactory_Release
(
factory
);
CoUninitialize
();
}
START_TEST
(
mfplat
)
{
HRESULT
hr
;
CoInitialize
(
NULL
);
hr
=
MFStartup
(
MF_VERSION
,
MFSTARTUP_FULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -122,6 +124,4 @@ START_TEST(mfplat)
test_factory
();
MFShutdown
();
CoUninitialize
();
}
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