From aa2f971da2ec5ca27b35c8e5603b98449809ab1f Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 20 May 2003 18:56:25 +0000 Subject: [PATCH] - Fixed the calculation of the TopAddress in MmFindGapTopDown. svn path=/trunk/; revision=4733 --- reactos/ntoskrnl/mm/marea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/marea.c b/reactos/ntoskrnl/mm/marea.c index f1f70111433..124c8188a83 100644 --- a/reactos/ntoskrnl/mm/marea.c +++ b/reactos/ntoskrnl/mm/marea.c @@ -301,7 +301,7 @@ PVOID MmFindGapTopDown(PMADDRESS_SPACE AddressSpace, ULONG Length) DPRINT("Found gap at %p\n", TopAddress - Length); return(TopAddress - Length + 1); } - TopAddress = current->BaseAddress; + TopAddress = current->BaseAddress - 1; } current_entry = current_entry->Blink; }