dsound/tests: Avoid a crash on a Win2k box.

Michael Stefaniuc mstefani at redhat.de
Mon Sep 17 14:08:05 CDT 2012


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

diff --git a/dlls/dsound/tests/duplex.c b/dlls/dsound/tests/duplex.c
index 170b552..b688803 100644
--- a/dlls/dsound/tests/duplex.c
+++ b/dlls/dsound/tests/duplex.c
@@ -285,7 +285,7 @@ static void test_COM(void)
             "IDirectSoundFullDuplex_Initialize failed: %08x, expected E_INVALIDARG\n", hr);
     hr = IDirectSoundFullDuplex_Initialize(dsfd, NULL, NULL, &cbufdesc, &bufdesc, get_hwnd(),
             DSSCL_EXCLUSIVE, &dscb8, &dsb8);
-    if (hr == DSERR_NODRIVER) {
+    if (hr == DSERR_NODRIVER || hr == DSERR_INVALIDCALL) {
         skip("No driver\n");
         return;
     }
-- 
1.7.6.5



More information about the wine-patches mailing list