winmm: Remove useless casts to self.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-02-28 21:39:46 +01:00 committed by Alexandre Julliard
parent 841541a6a6
commit de2854bebd
1 changed files with 2 additions and 2 deletions

View File

@ -3124,9 +3124,9 @@ UINT WINAPI waveOutSetVolume(HWAVEOUT hWaveOut, DWORD in)
return MMSYSERR_ERROR;
}
vols[0] = (float)((DWORD)(in & 0xFFFF) / (float)0xFFFF);
vols[0] = (float)((in & 0xFFFF) / (float)0xFFFF);
if(channels > 1)
vols[1] = (float)((DWORD)(in >> 16) / (float)0xFFFF);
vols[1] = (float)((in >> 16) / (float)0xFFFF);
hr = IAudioStreamVolume_SetAllVolumes(device->volume, channels, vols);
if(FAILED(hr)){