[DSOUND] fix capture test

Robert Reif reif at earthlink.net
Thu Feb 17 17:58:10 CST 2005


Fix capture test to pass on windows 98 when no sound card present.
-------------- next part --------------
Index: dlls/dsound/tests/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/capture.c,v
retrieving revision 1.16
diff -u -p -r1.16 capture.c
--- dlls/dsound/tests/capture.c	10 Jan 2005 12:25:57 -0000	1.16
+++ dlls/dsound/tests/capture.c	17 Feb 2005 23:55:12 -0000
@@ -314,11 +314,13 @@ static BOOL WINAPI dscenum_callback(LPGU
     }
 
     rc=pDirectSoundCaptureCreate(lpGuid,&dsco,NULL);
-    ok((rc==DS_OK)||(rc==DSERR_NODRIVER),"DirectSoundCaptureCreate() failed: "
-       "%s\n",DXGetErrorString8(rc));
+    ok((rc==DS_OK)||(rc==DSERR_NODRIVER)||(rc==E_FAIL),
+       "DirectSoundCaptureCreate() failed: %s\n",DXGetErrorString8(rc));
     if (rc!=DS_OK) {
         if (rc==DSERR_NODRIVER)
             trace("  No Driver\n");
+        else if (rc==E_FAIL)
+            trace("  E_FAIL\n");
 	goto EXIT;
     }
 


More information about the wine-patches mailing list