dsound8 test fix - with correct patch file.

Jakob Eriksson jakov at vmlinux.org
Tue Mar 22 09:23:07 CST 2005


I posted the wrong patch before.


-------------- next part --------------
Index: dlls/dsound/tests/dsound8.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound8.c,v
retrieving revision 1.18
diff -u -r1.18 dsound8.c
--- dlls/dsound/tests/dsound8.c	5 Mar 2005 10:49:08 -0000	1.18
+++ dlls/dsound/tests/dsound8.c	22 Mar 2005 15:22:28 -0000
@@ -109,10 +109,15 @@
         if (rc==DSERR_NODRIVER) {
             trace("  No Driver\n");
             return;
-        } else if (rc==DSERR_ALLOCATED) {
+        }
+	if (rc==DSERR_ALLOCATED) {
             trace("  Already In Use\n");
             return;
-       }
+        }
+	if (rc==E_FAIL) {
+            trace("  Could not initialize DirectSound.\n");
+	    return;
+	}
     }
 
     /* DSOUND: Error: Invalid caps buffer */


More information about the wine-patches mailing list