winecoreaudio: Fix incorrect casts from float to DWORD in wodGetVolume.
This commit is contained in:
parent
1e424138fe
commit
fd596b9cb8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue