http://bugs.winehq.org/show_bug.cgi?id=26985
--- Comment #44 from Andrew Eikum aeikum@codeweavers.com 2012-04-30 10:24:03 CDT --- It's an application bug that Windows works around but Wine doesn't. The application releases the dsound primary buffer twice:
IDirectSound_CreateSoundBuffer(dsound, DSBCAPS_PRIMARYBUFFER, &primary); IDirectSoundBuffer_Release(primary); IDirectSound_CreateSoundBuffer(dsound, 0, &secondary); IDirectSoundBuffer_Play(secondary); ... IDirectSoundBuffer_Stop(secondary); IDirectSoundBuffer_Release(secondary); IDirectSoundBuffer_Release(primary); IDirectSound_Release(dsound);
It appears that Windows continually returns 0 from invalid primary IDSB_Release() calls. I'll write some tests for this.