Author: mjmartin
Date: Sun Aug 29 07:00:52 2010
New Revision: 48640
URL:
http://svn.reactos.org/svn/reactos?rev=48640&view=rev
Log:
[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.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] Sun Aug 29 07:00:52 2010
@@ -108,6 +108,11 @@
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);