[DSOUND] fix duplex test

Robert Reif reif at earthlink.net
Wed Feb 8 06:44:45 CST 2006


Allow another way to fail.
-------------- next part --------------
Index: dlls/dsound/tests/duplex.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/duplex.c,v
retrieving revision 1.2
diff -p -u -r1.2 duplex.c
--- dlls/dsound/tests/duplex.c	25 Jan 2006 12:24:27 -0000	1.2
+++ dlls/dsound/tests/duplex.c	8 Feb 2006 12:41:29 -0000
@@ -123,12 +123,15 @@ static void IDirectSoundFullDuplex_tests
     rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL,
                         CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
                         (void**)&dsfdo);
-    ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG,
+    ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG||rc==CLASS_E_CLASSNOTAVAILABLE,
        "CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08lx)\n",
        DXGetErrorString8(rc), rc);
     if (rc==REGDB_E_CLASSNOTREG) {
         trace("  Class Not Registered\n");
         return;
+    } else if (rc==CLASS_E_CLASSNOTAVAILABLE) {
+        trace("  Class Not Available\n");
+        return;
     }
     if (dsfdo)
         IDirectSoundFullDuplex_test(dsfdo, FALSE, NULL, NULL);


More information about the wine-patches mailing list