dmloader/tests: Fix a crash due to a missing audio driver.
Michael Stefaniuc
mstefani at redhat.de
Fri Jan 10 16:07:26 CST 2014
---
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");
--
1.8.3.1
More information about the wine-patches
mailing list