[ntoskrnl]
authorMichael Martin <michael.martin@reactos.org>
Sun, 29 Aug 2010 07:00:52 +0000 (07:00 +0000)
committerMichael Martin <michael.martin@reactos.org>
Sun, 29 Aug 2010 07:00:52 +0000 (07:00 +0000)
- 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

index b75f2dc..79b9628 100644 (file)
@@ -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);