http://bugs.winehq.org/show_bug.cgi?id=28413
--- Comment #18 from Andrew Eikum aeikum@codeweavers.com 2011-11-21 13:16:05 CST --- Actually I just ran a test on Windows 7 and it seems to reuse device handles like Wine does. I think unique device handles aren't necessarily the solution for the problem in Comment 14.
Test snippet: mr = waveOutOpen(&hwave, 0, &fmt, 0, 0, CALLBACK_NULL); ok(mr == MMSYSERR_NOERROR, "waveOutOpen failed\n"); waveOutClose(hwave);
mr = waveOutOpen(&hwave2, 0, &fmt, 0, 0, CALLBACK_NULL); ok(mr == MMSYSERR_NOERROR, "waveOutOpen failed\n");
ok(0, "hwave: %p, hwave2: %p\n", hwave, hwave2);
Result on Windows 7 VM: wave.c:1487: Test failed: hwave: 002D54E0, hwave2: 002D54E0 wave: 4 tests executed (0 marked as todo, 1 failure), 0 skipped.
Am I missing something?