mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Fix some VS static analyzed warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user