[DSOUND] Accept DSERR_NODRIVER in capure test
Felix Nawothnig
felix.nawothnig at t-online.de
Tue Jun 21 13:48:09 CDT 2005
ChangeLog:
Accept DSERR_NODRIVER from IDirectSoundCapture_CreateCaptureBuffer
-------------- next part --------------
Index: capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/capture.c,v
retrieving revision 1.22
diff -u -r1.22 capture.c
--- capture.c 12 Jun 2005 10:41:49 -0000 1.22
+++ capture.c 21 Jun 2005 18:47:11 -0000
@@ -593,7 +593,7 @@
trace(" Testing the capture buffer at %s\n", format_string(&wfx));
rc=IDirectSoundCapture_CreateCaptureBuffer(dsco,&bufdesc,&dscbo,NULL);
ok(((rc==DS_OK)&&(dscbo!=NULL))||(rc==DSERR_BADFORMAT)||
- (rc==DSERR_ALLOCATED)||(rc==E_INVALIDARG),
+ ((rc==DSERR_NODRIVER))||(rc==DSERR_ALLOCATED)||(rc==E_INVALIDARG),
"IDirectSoundCapture_CreateCaptureBuffer() failed to create a "
"%s capture buffer: %s\n",format_string(&wfx),DXGetErrorString8(rc));
if (rc==DS_OK) {
@@ -607,6 +607,8 @@
"capture buffer: format listed as supported but using it failed\n");
if (!(dsccaps.dwFormats & formats[f][3]))
trace(" Format not supported: %s\n", format_string(&wfx));
+ } else if (rc==DSERR_NODRIVER) {
+ trace(" No Driver\n");
} else if (rc==DSERR_ALLOCATED) {
trace(" Already In Use\n");
} else if (rc==E_INVALIDARG) { /* try the old version struct */
More information about the wine-patches
mailing list