MCIWAVE: prevent division by zero when processing non-PCM codec

Alex Villací­s Lasso a_villacis at
Mon Jun 25 12:42:47 CDT 2007

The following test app:

can make msacm crash with a division by zero when opening a WAV file 
with a non-PCM codec, and then selecting the "Player!" menu option. This 
app is one sample of the Visual Studio 6 samples.

One file on which this sample crashes is the following one (MP3 codec):

Patch attached to fix this bug.

* Prevent division by zero on processing of non-PCM codec

perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-mciwave-divzero_protect.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
Url :

More information about the wine-patches mailing list