From fb1a4893b8dff55f5669e935a419ea87b41f62f6 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 29 Aug 2021 15:23:59 +0200 Subject: Windows: Fix some VS static analyzed warnings --- src/Driver/Ntdriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Driver/Ntdriver.c') diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index ca840fea..c778cfed 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -4612,7 +4612,7 @@ void EnsureNullTerminatedString (wchar_t *str, size_t maxSizeInBytes) void *AllocateMemoryWithTimeout (size_t size, int retryDelay, int timeout) { LARGE_INTEGER waitInterval; - waitInterval.QuadPart = retryDelay * -10000; + waitInterval.QuadPart = ((LONGLONG)retryDelay) * -10000; ASSERT (KeGetCurrentIrql() <= APC_LEVEL); ASSERT (retryDelay > 0 && retryDelay <= timeout); -- cgit v1.2.3