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

This commit is contained in:
Michael Stefaniuc 2013-04-22 00:19:47 +02:00 committed by Alexandre Julliard
parent d71d758667
commit 7f65281056
1 changed files with 4 additions and 0 deletions

View File

@ -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);