Commit 8b086d60 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winmm/tests: Don't complain for Wine drivers that allow multiple wave-out opens.

parent f639c4df
...@@ -59,12 +59,16 @@ static void test_multiple_waveopens(void) ...@@ -59,12 +59,16 @@ static void test_multiple_waveopens(void)
} }
ret = waveOutOpen(&handle2, 0, &wfx, 0, 0, 0); ret = waveOutOpen(&handle2, 0, &wfx, 0, 0, 0);
/* In windows this is most likely allowed, in wine an application can use the waveout /* Modern Windows allows for wave-out devices to be opened multiple times.
* interface, but so can directsound.. this causes problems if directsound goes active * Some Wine audio drivers allow that and some don't. To avoid false alarms
* for those that do, don't "todo_wine ok(...)" on success.
*/ */
todo_wine ok(ret == MMSYSERR_NOERROR || broken(ret == MMSYSERR_ALLOCATED), /* winME */ if (ret != MMSYSERR_NOERROR)
"waveOutOpen returns: %x\n", ret); {
if (ret == MMSYSERR_NOERROR) todo_wine ok(ret == MMSYSERR_NOERROR || broken(ret == MMSYSERR_ALLOCATED), /* winME */
"second waveOutOpen returns: %x\n", ret);
}
else
waveOutClose(handle2); waveOutClose(handle2);
waveOutClose(handle1); waveOutClose(handle1);
......
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