winecoreaudio: Fix incorrect casts from float to DWORD in wodGetVolume.

This commit is contained in:
Ken Thomases 2009-10-19 20:38:42 -05:00 committed by Alexandre Julliard
parent 1e424138fe
commit fd596b9cb8
1 changed files with 1 additions and 1 deletions

View File

@ -1452,7 +1452,7 @@ static DWORD wodGetVolume(WORD wDevID, WINE_WAVEOUT_INSTANCE* wwo, LPDWORD lpdwV
AudioUnit_GetVolume(wwo->audioUnit, &left, &right);
*lpdwVol = ((WORD) left * 0xFFFFl) + (((WORD) right * 0xFFFFl) << 16);
*lpdwVol = (WORD)(left * 0xFFFFl) + ((WORD)(right * 0xFFFFl) << 16);
return MMSYSERR_NOERROR;
}