From fd596b9cb80c86dcaf6bb89e3cf438131f2396fa Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Mon, 19 Oct 2009 20:38:42 -0500 Subject: [PATCH] winecoreaudio: Fix incorrect casts from float to DWORD in wodGetVolume. --- dlls/winecoreaudio.drv/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winecoreaudio.drv/audio.c b/dlls/winecoreaudio.drv/audio.c index 835d1a9af63..91f65996310 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; }