wineoss: Fix the BlockSize check
Francois Gouget
fgouget at codeweavers.com
Mon Jan 6 03:45:14 CST 2003
Changelog:
* dlls/winmm/wineoss/audio.c
Francois Gouget <fgouget at codeweavers.com>
Fix the BlockSize check
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/winmm/wineoss/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.68
diff -u -r1.68 audio.c
--- dlls/winmm/wineoss/audio.c 15 Dec 2002 02:59:13 -0000 1.68
+++ dlls/winmm/wineoss/audio.c 4 Jan 2003 05:46:00 -0000
@@ -1450,9 +1488,9 @@
lpWaveHdr->dwFlags |= WHDR_INQUEUE;
lpWaveHdr->lpNext = 0;
- if ((lpWaveHdr->dwBufferLength & ~(WOutDev[wDevID].format.wf.nBlockAlign - 1)) != 0)
+ if ((lpWaveHdr->dwBufferLength & (WOutDev[wDevID].format.wf.nBlockAlign - 1)) != 0)
{
- WARN("WaveHdr length isn't a multiple of the PCM block size\n");
+ WARN("WaveHdr length isn't a multiple of the PCM block size: %ld %% %d\n",lpWaveHdr->dwBufferLength,WOutDev[wDevID].format.wf.nBlockAlign);
lpWaveHdr->dwBufferLength &= ~(WOutDev[wDevID].format.wf.nBlockAlign - 1);
}
More information about the wine-patches
mailing list