1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

wineoss.drv: Avoid potential overflow (Coverity).

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2016-02-10 12:54:51 -06:00 committed by Alexandre Julliard
parent 7bb885a3d3
commit b2caf7513a

View File

@ -1203,7 +1203,7 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
/* pretend we process audio in Period chunks, so max latency includes
* the period time. Some native machines add .6666ms in shared mode. */
*latency = This->period_us * 10 + 6666;
*latency = (REFERENCE_TIME)This->period_us * 10 + 6666;
LeaveCriticalSection(&This->lock);