From 690399c881f2702bee3acd6f8f9bda1d2cfbf916 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Sun, 29 Aug 2010 07:00:52 +0000 Subject: [PATCH] [ntoskrnl] - When a node is removed, check the NodeHint of the table to see if it matches the one being removed. If so update the NodeHint to the PreviousNode. FIxes VAD corruption messages. svn path=/trunk/; revision=48640 --- reactos/ntoskrnl/mm/ARM3/vadnode.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/mm/ARM3/vadnode.c b/reactos/ntoskrnl/mm/ARM3/vadnode.c index b75f2dc6589..79b962855b6 100644 --- a/reactos/ntoskrnl/mm/ARM3/vadnode.c +++ b/reactos/ntoskrnl/mm/ARM3/vadnode.c @@ -108,6 +108,11 @@ NTAPI MiRemoveNode(IN PMMADDRESS_NODE Node, IN PMM_AVL_TABLE Table) { + if (Table->NodeHint == Node) + { + Table->NodeHint = MiGetPreviousNode(Table->NodeHint); + } + /* Call the AVL code */ RtlpDeleteAvlTreeNode(Table, Node);