From 12168fe7492eae8be7d7bb3cd94294825ca7120f Mon Sep 17 00:00:00 2001 From: Felix Nawothnig Date: Tue, 21 Jun 2005 20:21:39 +0000 Subject: [PATCH] Accept DSERR_NODRIVER from IDirectSoundCapture_CreateCaptureBuffer. --- dlls/dsound/tests/capture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/dsound/tests/capture.c b/dlls/dsound/tests/capture.c index 1612ff208b2..b0e921cb98a 100644 --- a/dlls/dsound/tests/capture.c +++ b/dlls/dsound/tests/capture.c @@ -593,7 +593,7 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, 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 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription, "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 */