Initialize and uninitialize COM properly.
This commit is contained in:
parent
4854f847c8
commit
56dbf7fb21
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue