dsound tests COM fixes
Robert Reif
reif at earthlink.net
Sat Jan 8 07:09:29 CST 2005
Initialize and uninitialize COM properly.
-------------- next part --------------
Index: dlls/dsound/tests/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/capture.c,v
retrieving revision 1.13
diff -u -r1.13 capture.c
--- dlls/dsound/tests/capture.c 25 Oct 2004 21:45:51 -0000 1.13
+++ dlls/dsound/tests/capture.c 8 Jan 2005 13:04:20 -0000
@@ -513,6 +513,8 @@
{
HMODULE hDsound;
+ CoInitialize(NULL);
+
hDsound = LoadLibraryA("dsound.dll");
if (!hDsound) {
trace("dsound.dll not found\n");
@@ -527,4 +529,6 @@
}
capture_tests();
+
+ CoUninitialize();
}
Index: dlls/dsound/tests/ds3d.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/ds3d.c,v
retrieving revision 1.16
diff -u -r1.16 ds3d.c
--- dlls/dsound/tests/ds3d.c 21 Oct 2004 19:51:10 -0000 1.16
+++ dlls/dsound/tests/ds3d.c 8 Jan 2005 13:04:22 -0000
@@ -1198,5 +1198,9 @@
START_TEST(ds3d)
{
+ CoInitialize(NULL);
+
ds3d_tests();
+
+ CoUninitialize();
}
Index: dlls/dsound/tests/ds3d8.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/ds3d8.c,v
retrieving revision 1.10
diff -u -r1.10 ds3d8.c
--- dlls/dsound/tests/ds3d8.c 21 Oct 2004 19:51:10 -0000 1.10
+++ dlls/dsound/tests/ds3d8.c 8 Jan 2005 13:04:23 -0000
@@ -1130,4 +1130,6 @@
}
ds3d8_tests();
+
+ CoUninitialize();
}
Index: dlls/dsound/tests/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound.c,v
retrieving revision 1.42
diff -u -r1.42 dsound.c
--- dlls/dsound/tests/dsound.c 25 Oct 2004 21:45:51 -0000 1.42
+++ dlls/dsound/tests/dsound.c 8 Jan 2005 13:04:23 -0000
@@ -756,4 +756,6 @@
IDirectSound_tests();
dsound_tests();
+
+ CoUninitialize();
}
Index: dlls/dsound/tests/dsound8.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound8.c,v
retrieving revision 1.12
diff -u -r1.12 dsound8.c
--- dlls/dsound/tests/dsound8.c 26 Oct 2004 21:17:37 -0000 1.12
+++ dlls/dsound/tests/dsound8.c 8 Jan 2005 13:04:24 -0000
@@ -791,4 +791,6 @@
IDirectSound8_tests();
dsound8_tests();
+
+ CoUninitialize();
}
Index: dlls/dsound/tests/propset.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/propset.c,v
retrieving revision 1.12
diff -u -r1.12 propset.c
--- dlls/dsound/tests/propset.c 21 Oct 2004 19:51:10 -0000 1.12
+++ dlls/dsound/tests/propset.c 8 Jan 2005 13:04:24 -0000
@@ -408,6 +408,10 @@
START_TEST(propset)
{
+ CoInitialize(NULL);
+
propset_private_tests();
propset_buffer_tests();
+
+ CoUninitialize();
}
More information about the wine-patches
mailing list