Fixed an overflow in calculating times.

This commit is contained in:
Hidenori Takeshima 2002-04-08 20:10:10 +00:00 committed by Alexandre Julliard
parent 85c120fcb9
commit dc31501ed2
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ static DWORD WAVE_ConvertByteToTimeFormat(WINE_MCIWAVE* wmw, DWORD val, LPDWORD
switch (wmw->dwMciTimeFormat) {
case MCI_FORMAT_MILLISECONDS:
ret = (val * 1000) / wmw->lpWaveFormat->nAvgBytesPerSec;
ret = MulDiv(val,1000,wmw->lpWaveFormat->nAvgBytesPerSec);
break;
case MCI_FORMAT_BYTES:
ret = val;