NT4 dsound test fix

Jakob Eriksson jakov at vmlinux.org
Fri Apr 15 16:11:22 CDT 2005


http://test.winehq.org/data/200504141000/nt4_IDWASEMPTY/dsound:propset.txt
-------------- next part --------------
Index: propset.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/propset.c,v
retrieving revision 1.17
diff -u -r1.17 propset.c
--- propset.c	14 Mar 2005 10:04:07 -0000	1.17
+++ propset.c	15 Apr 2005 21:10:34 -0000
@@ -593,7 +593,7 @@
     bufdesc.dwSize=sizeof(bufdesc);
     bufdesc.dwFlags=DSBCAPS_PRIMARYBUFFER|DSBCAPS_LOCHARDWARE|DSBCAPS_CTRL3D;
     rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&primary,NULL);
-    ok(rc==DS_OK&&primary!=NULL,"IDirectSound_CreateSoundBuffer() failed to "
+    ok(E_INVALIDARG==rc || (rc==DS_OK&&primary!=NULL),"IDirectSound_CreateSoundBuffer() failed to "
        "create a hardware 3D primary buffer: %s\n",DXGetErrorString8(rc));
     if (rc==DS_OK&&primary!=NULL) {
         ZeroMemory(&wfx, sizeof(wfx));


More information about the wine-patches mailing list