James Hawkins : dsound: Fix a failing test for broken drivers.

Alexandre Julliard julliard at winehq.org
Wed Jul 2 06:03:37 CDT 2008


Module: wine
Branch: master
Commit: f4cbdc96de27805b608f23b63b160296cf19139b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f4cbdc96de27805b608f23b63b160296cf19139b

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Tue Jul  1 23:19:38 2008 -0500

dsound: Fix a failing test for broken drivers.

---

 dlls/dsound/tests/capture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dsound/tests/capture.c b/dlls/dsound/tests/capture.c
index 9f9b150..f113e03 100644
--- a/dlls/dsound/tests/capture.c
+++ b/dlls/dsound/tests/capture.c
@@ -631,7 +631,7 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
 	    bufdesc1.lpwfxFormat=&wfx;
 	    rc=IDirectSoundCapture_CreateCaptureBuffer(dsco,
                 (DSCBUFFERDESC*)&bufdesc1,&dscbo,NULL);
-	    ok(rc==DS_OK,
+	    ok(rc==DS_OK || broken(rc==E_INVALIDARG),
                "IDirectSoundCapture_CreateCaptureBuffer() failed to create a "
                "%s capture buffer: %s\n",format_string(&wfx),
                DXGetErrorString8(rc));




More information about the wine-cvs mailing list