Module: wine Branch: master Commit: 3fef1be56f70075076d9ddb767b47d1a059152e4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fef1be56f70075076d9ddb767...
Author: Michael Stefaniuc mstefani@redhat.de Date: Fri Jan 10 23:07:26 2014 +0100
dmloader/tests: Fix a crash due to a missing audio driver.
---
dlls/dmloader/tests/loader.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/dmloader/tests/loader.c b/dlls/dmloader/tests/loader.c index ea5edca..8759033 100644 --- a/dlls/dmloader/tests/loader.c +++ b/dlls/dmloader/tests/loader.c @@ -73,6 +73,10 @@ static void test_simple_playing(void)
hr = IDirectMusicPerformance8_InitAudio(perf, &music, &dsound, NULL, DMUS_APATH_DYNAMIC_STEREO, 64, DMUS_AUDIOF_ALL, NULL); + if (hr == DSERR_NODRIVER) { + skip("No audio driver.\n"); + return; + } ok(hr == S_OK, "InitAudio failed: %08x\n", hr); ok(music != NULL, "Didn't get IDirectMusic pointer\n"); ok(dsound != NULL, "Didn't get IDirectSound pointer\n");