dsound tests fix
Robert Reif
reif at earthlink.net
Sat Oct 16 14:17:43 CDT 2004
Don't test if no driver present.
-------------- next part --------------
Index: dlls/dsound/tests/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound.c,v
retrieving revision 1.38
diff -u -r1.38 dsound.c
--- dlls/dsound/tests/dsound.c 25 Aug 2004 02:09:00 -0000 1.38
+++ dlls/dsound/tests/dsound.c 16 Oct 2004 19:15:06 -0000
@@ -94,8 +94,10 @@
DXGetErrorString8(rc));
rc=IDirectSound_Initialize(dso,lpGuid);
- ok(rc==DS_OK,"IDirectSound_Initialize() failed: %s\n",
+ ok(rc==DS_OK||rc==DSERR_NODRIVER,"IDirectSound_Initialize() failed: %s\n",
DXGetErrorString8(rc));
+ if (rc==DSERR_NODRIVER)
+ return;
}
/* DSOUND: Error: Invalid caps buffer */
Index: dlls/dsound/tests/dsound8.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound8.c,v
retrieving revision 1.7
diff -u -r1.7 dsound8.c
--- dlls/dsound/tests/dsound8.c 8 Sep 2004 19:08:14 -0000 1.7
+++ dlls/dsound/tests/dsound8.c 16 Oct 2004 19:15:08 -0000
@@ -103,8 +103,10 @@
DXGetErrorString8(rc));
rc=IDirectSound8_Initialize(dso,lpGuid);
- ok(rc==DS_OK,"IDirectSound8_Initialize() failed: %s\n",
+ ok(rc==DS_OK||rc==DSERR_NODRIVER,"IDirectSound8_Initialize() failed: %s\n",
DXGetErrorString8(rc));
+ if (rc==DSERR_NODRIVER)
+ return;
}
/* DSOUND: Error: Invalid caps buffer */
More information about the wine-patches
mailing list