Commit 56dbf7fb authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Initialize and uninitialize COM properly.

parent 4854f847
......@@ -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();
}
......@@ -1198,5 +1198,9 @@ static void ds3d_tests()
START_TEST(ds3d)
{
CoInitialize(NULL);
ds3d_tests();
CoUninitialize();
}
......@@ -1130,4 +1130,6 @@ START_TEST(ds3d8)
}
ds3d8_tests();
CoUninitialize();
}
......@@ -756,4 +756,6 @@ START_TEST(dsound)
IDirectSound_tests();
dsound_tests();
CoUninitialize();
}
......@@ -791,4 +791,6 @@ START_TEST(dsound8)
IDirectSound8_tests();
dsound8_tests();
CoUninitialize();
}
......@@ -408,6 +408,10 @@ static void propset_buffer_tests()
START_TEST(propset)
{
CoInitialize(NULL);
propset_private_tests();
propset_buffer_tests();
CoUninitialize();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment