Commit 005ff502 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winepulse: Avoid 32-bit calculation with 64-bit result (Coverity).

parent ff6225c1
......@@ -2239,10 +2239,9 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
pthread_mutex_lock(&pulse_lock);
hr = pulse_stream_valid(This);
if (SUCCEEDED(hr)) {
*freq = This->ss.rate;
if (This->share == AUDCLNT_SHAREMODE_SHARED)
*freq = This->ss.rate * pa_frame_size(&This->ss);
else
*freq = This->ss.rate;
*freq *= pa_frame_size(&This->ss);
}
pthread_mutex_unlock(&pulse_lock);
return 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