Module: wine Branch: master Commit: fd596b9cb80c86dcaf6bb89e3cf438131f2396fa URL: http://source.winehq.org/git/wine.git/?a=commit;h=fd596b9cb80c86dcaf6bb89e3c...
Author: Ken Thomases ken@codeweavers.com Date: Mon Oct 19 20:38:42 2009 -0500
winecoreaudio: Fix incorrect casts from float to DWORD in wodGetVolume.
---
dlls/winecoreaudio.drv/audio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winecoreaudio.drv/audio.c b/dlls/winecoreaudio.drv/audio.c index 835d1a9..91f6599 100644 --- a/dlls/winecoreaudio.drv/audio.c +++ b/dlls/winecoreaudio.drv/audio.c @@ -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; }