[NTOSKRNL]

- begin search at the highest possible address in VAD tree

svn path=/trunk/; revision=53060
This commit is contained in:
Jérôme Gardou 2011-08-04 16:21:22 +00:00
parent 8be271b56b
commit 415db7e8f3

View file

@ -396,8 +396,7 @@ MiFindEmptyAddressRangeDownTree(IN SIZE_T Length,
/* Starting from the root, go down until the right-most child,
trying to stay below the boundary. */
LowestNode = Node = RtlRightChildAvl(&Table->BalancedRoot);
while ( (Child = RtlRightChildAvl(Node)) &&
Child->EndingVpn < HighVpn ) Node = Child;
while (Child = RtlRightChildAvl(Node)) Node = Child;
/* Now loop the Vad nodes */
while (Node)