dsound/tests: Skip tests if there is no default device.

Michael Stefaniuc mstefani at redhat.de
Sun Apr 21 17:19:47 CDT 2013


---
Prevents the w2008s64 new WTB from crashing during this test.



 dlls/dsound/tests/dsound8.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c
index 664ba0c..e22265b 100644
--- a/dlls/dsound/tests/dsound8.c
+++ b/dlls/dsound/tests/dsound8.c
@@ -1095,6 +1095,10 @@ static void test_first_device(void)
 
     hr = IMMDeviceEnumerator_GetDefaultAudioEndpoint(devenum, eRender,
             eMultimedia, &defdev);
+    if (hr == E_NOTFOUND) {
+        win_skip("No default device found\n");
+        return;
+    }
     ok(hr == S_OK, "GetDefaultAudioEndpoint failed: %08x\n", hr);
 
     hr = IMMDevice_OpenPropertyStore(defdev, STGM_READ, &ps);
-- 
1.7.11.7



More information about the wine-patches mailing list