Initialize and uninitialize COM properly.

This commit is contained in:
Robert Reif 2005-01-09 16:34:00 +00:00 committed by Alexandre Julliard
parent 4854f847c8
commit 56dbf7fb21
6 changed files with 18 additions and 0 deletions

View File

@ -513,6 +513,8 @@ START_TEST(capture)
{
HMODULE hDsound;
CoInitialize(NULL);
hDsound = LoadLibraryA("dsound.dll");
if (!hDsound) {
trace("dsound.dll not found\n");
@ -527,4 +529,6 @@ START_TEST(capture)
}
capture_tests();
CoUninitialize();
}

View File

@ -1198,5 +1198,9 @@ static void ds3d_tests()
START_TEST(ds3d)
{
CoInitialize(NULL);
ds3d_tests();
CoUninitialize();
}

View File

@ -1130,4 +1130,6 @@ START_TEST(ds3d8)
}
ds3d8_tests();
CoUninitialize();
}

View File

@ -756,4 +756,6 @@ START_TEST(dsound)
IDirectSound_tests();
dsound_tests();
CoUninitialize();
}

View File

@ -791,4 +791,6 @@ START_TEST(dsound8)
IDirectSound8_tests();
dsound8_tests();
CoUninitialize();
}

View File

@ -408,6 +408,10 @@ static void propset_buffer_tests()
START_TEST(propset)
{
CoInitialize(NULL);
propset_private_tests();
propset_buffer_tests();
CoUninitialize();
}