Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/mfreadwrite/tests/mfplat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/mfreadwrite/tests/mfplat.c b/dlls/mfreadwrite/tests/mfplat.c index de5f35949e..b2675dc71f 100644 --- a/dlls/mfreadwrite/tests/mfplat.c +++ b/dlls/mfreadwrite/tests/mfplat.c @@ -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(); }