[ros-diffs] [sir_richard] 55981: [RTL]: Sorry, forgot this critical part of the VAD commit.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Sun Mar 4 00:47:20 UTC 2012


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=55981&r1=55980&r2=55981&view=diff
==============================================================================
--- 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);
 
     /*




More information about the Ros-diffs mailing list