Commit 3fef1be5 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmloader/tests: Fix a crash due to a missing audio driver.

parent 03d5b124
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment