Commit 12be24af authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

ntdll: Fix memory region check in NtQueryVirtualMemory.

parent f09f6865
......@@ -2756,7 +2756,7 @@ static int get_free_mem_state_callback( void *start, size_t size, void *arg )
MEMORY_BASIC_INFORMATION *info = arg;
void *end = (char *)start + size;
if ((char *)info->BaseAddress + info->RegionSize < (char *)start) return 0;
if ((char *)info->BaseAddress + info->RegionSize <= (char *)start) return 0;
if (info->BaseAddress >= end)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment