Commit eddf841a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winealsa/wineoss/winecoreaudio: Calculate frequency in 64bit (Coverity).

parent 7ce613c3
......@@ -2823,7 +2823,7 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE("(%p)->(%p)\n", This, freq);
if(This->share == AUDCLNT_SHAREMODE_SHARED)
*freq = This->fmt->nSamplesPerSec * This->fmt->nBlockAlign;
*freq = (UINT64)This->fmt->nSamplesPerSec * This->fmt->nBlockAlign;
else
*freq = This->fmt->nSamplesPerSec;
......
......@@ -2421,7 +2421,7 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE("(%p)->(%p)\n", This, freq);
if(This->share == AUDCLNT_SHAREMODE_SHARED)
*freq = This->fmt->nSamplesPerSec * This->fmt->nBlockAlign;
*freq = (UINT64)This->fmt->nSamplesPerSec * This->fmt->nBlockAlign;
else
*freq = This->fmt->nSamplesPerSec;
......
......@@ -2146,7 +2146,7 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE("(%p)->(%p)\n", This, freq);
if(This->share == AUDCLNT_SHAREMODE_SHARED)
*freq = This->fmt->nSamplesPerSec * This->fmt->nBlockAlign;
*freq = (UINT64)This->fmt->nSamplesPerSec * This->fmt->nBlockAlign;
else
*freq = This->fmt->nSamplesPerSec;
......
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