From: Michael Stefaniuc Subject: dsound/tests: Skip tests if there is no default device. Message-Id: <20130421221947.GB29367@redhat.com> Date: Mon, 22 Apr 2013 00:19:47 +0200 --- 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