Author: jgardou
Date: Wed Jun 18 18:32:46 2014
New Revision: 63616
URL:
http://svn.reactos.org/svn/reactos?rev=63616&view=rev
Log:
[NTOS/MM]
- When freeing virtual memory, correctly set the ending address of the shrunk memory
area.
CORE-7467
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Wed Jun 18 18:32:46 2014
@@ -5336,7 +5336,7 @@
ASSERT(Vad->StartingVpn << PAGE_SHIFT ==
(ULONG_PTR)MemoryArea->StartingAddress);
ASSERT((Vad->EndingVpn + 1) << PAGE_SHIFT ==
(ULONG_PTR)MemoryArea->EndingAddress);
Vad->EndingVpn = ((ULONG_PTR)StartingAddress - 1) >>
PAGE_SHIFT;
- MemoryArea->EndingAddress = (PVOID)(((Vad->EndingVpn + 1)
<< PAGE_SHIFT) - 1);
+ MemoryArea->EndingAddress = (PVOID)(StartingAddress);
}
else
{