DSOUND: prevent assertion in mixer.c

Alex Villací­s Lasso a_villacis at palosanto.com
Mon Aug 1 11:51:03 CDT 2005


Tested program was a Japanese RPG trial from LittleWitch 
(http://www.littlewitch.jp/sirotume.exe). This game runs until the shot 
of a girl in a water tank, and at that spot, unless the attached patch 
is applied, the following assertion is triggered at dlls/dsound/mixer.c:

wine-pthread: mixer.c:386: DSOUND_MixInBuffer: Assertion `adjusted_remainder >= 0' failed.
wine: Unhandled exception (thread 000a), starting debugger...
WineDbg starting on pid 0x8

Changelog:
* Prevent dsb->buf_mixpos from ever remaining past dsb->buflen even if 
not in DSBPLAY_LOOPING case, to prevent assertion failure in 
DSOUND_MixInBuffer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-dsound-mixer-DSOUND_MixInBuffer.patch
Type: text/x-patch
Size: 365 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050801/835973f6/wine-dsound-mixer-DSOUND_MixInBuffer.bin


More information about the wine-patches mailing list