mirror of
https://github.com/reactos/wine.git
synced 2024-12-03 01:12:25 +00:00
winealsa/wineoss/winecoreaudio: Calculate frequency in 64bit (Coverity).
This commit is contained in:
parent
7ce613c3c2
commit
eddf841ab3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user