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

This commit is contained in:
Michael Stefaniuc 2014-01-10 23:07:26 +01:00 committed by Alexandre Julliard
parent 03d5b1248b
commit 3fef1be56f
1 changed files with 4 additions and 0 deletions

View File

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