[PATCH (try2)] wineoss.drv: Avoid potential overflow (Coverity).
Andrew Eikum
aeikum at codeweavers.com
Wed Feb 10 12:54:51 CST 2016
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
CID 701543
---
dlls/wineoss.drv/mmdevdrv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c
index d2a0c86..a932597 100644
--- a/dlls/wineoss.drv/mmdevdrv.c
+++ b/dlls/wineoss.drv/mmdevdrv.c
@@ -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);
--
2.7.1
More information about the wine-patches
mailing list