Commit de2854be authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

winmm: Remove useless casts to self.

parent 841541a6
...@@ -3124,9 +3124,9 @@ UINT WINAPI waveOutSetVolume(HWAVEOUT hWaveOut, DWORD in) ...@@ -3124,9 +3124,9 @@ UINT WINAPI waveOutSetVolume(HWAVEOUT hWaveOut, DWORD in)
return MMSYSERR_ERROR; return MMSYSERR_ERROR;
} }
vols[0] = (float)((DWORD)(in & 0xFFFF) / (float)0xFFFF); vols[0] = (float)((in & 0xFFFF) / (float)0xFFFF);
if(channels > 1) 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); hr = IAudioStreamVolume_SetAllVolumes(device->volume, channels, vols);
if(FAILED(hr)){ if(FAILED(hr)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment