From 415db7e8f3d3b26407b869e4b5190c3ddbaed371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 4 Aug 2011 16:21:22 +0000 Subject: [PATCH] [NTOSKRNL] - begin search at the highest possible address in VAD tree svn path=/trunk/; revision=53060 --- reactos/ntoskrnl/mm/ARM3/vadnode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/ARM3/vadnode.c b/reactos/ntoskrnl/mm/ARM3/vadnode.c index 551a1946f8e..09cd8356806 100644 --- a/reactos/ntoskrnl/mm/ARM3/vadnode.c +++ b/reactos/ntoskrnl/mm/ARM3/vadnode.c @@ -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)