Author: sir_richard
Date: Sun Mar 4 00:47:20 2012
New Revision: 55981
URL:
http://svn.reactos.org/svn/reactos?rev=55981&view=rev
Log:
[RTL]: Sorry, forgot this critical part of the VAD commit.
Modified:
trunk/reactos/lib/rtl/avlsupp.c
Modified: trunk/reactos/lib/rtl/avlsupp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/avlsupp.c?rev=5598…
==============================================================================
--- trunk/reactos/lib/rtl/avlsupp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/avlsupp.c [iso-8859-1] Sun Mar 4 00:47:20 2012
@@ -224,7 +224,8 @@
{
/* This is the new root node */
RtlInsertAsRightChildAvl(&Table->BalancedRoot, NewNode);
- MI_ASSERT(RtlBalance(NewNode) == RtlBalancedAvlTree);
+ //MI_ASSERT(RtlBalance(NewNode) == RtlBalancedAvlTree);
+ if (RtlBalance(NewNode) != RtlBalancedAvlTree) DPRINT1("Warning: Root node
unbalanced?\n");
/* On AVL trees, we also update the depth */
ASSERT(Table->DepthOfTree == 0);
@@ -243,7 +244,8 @@
}
/* Little cheat to save on loop processing, taken from Timo */
- MI_ASSERT(RtlBalance(NewNode) == RtlBalancedAvlTree);
+ //MI_ASSERT(RtlBalance(NewNode) == RtlBalancedAvlTree);
+ if (RtlBalance(NewNode) != RtlBalancedAvlTree) DPRINT1("Warning: Root node
unbalanced?\n");
RtlSetBalance(&Table->BalancedRoot, RtlLeftHeavyAvlTree);
/*