[ros-diffs] [ion] 19083: - Fix bugs in RtlSplay

ion at svn.reactos.com ion at svn.reactos.com
Wed Nov 9 03:17:34 CET 2005


- Fix bugs in RtlSplay
Modified: trunk/reactos/lib/rtl/splaytree.c
  _____  

Modified: trunk/reactos/lib/rtl/splaytree.c
--- trunk/reactos/lib/rtl/splaytree.c	2005-11-09 02:16:03 UTC (rev
19082)
+++ trunk/reactos/lib/rtl/splaytree.c	2005-11-09 02:17:18 UTC (rev
19083)
@@ -3,7 +3,7 @@

  * PROJECT:           ReactOS system libraries
  * PURPOSE:           Splay-Tree implementation
  * FILE:              lib/rtl/splaytree.c
- * PROGRAMMER:        
+ * PROGRAMMER:        Alex Ionescu (alex at relsoft.net)   
  */
 
 /* INCLUDES
*****************************************************************/
@@ -274,7 +274,7 @@
                          * G was a right child, so change its parent's
right
                          * child link to point to N now.
                          */
-                        RtlLeftChild(RtlParent(G)) = N;
+                        RtlRightChild(RtlParent(G)) = N;
                     }
                 }
 
@@ -335,7 +335,7 @@
                          * G was a right child, so change its parent's
right
                          * child link to point to N now.
                          */
-                        RtlLeftChild(RtlParent(G)) = N;
+                        RtlRightChild(RtlParent(G)) = N;
                     }
                 }
 
@@ -416,7 +416,7 @@
                          * G was a right child, so change its parent's
right
                          * child link to point to N now.
                          */
-                        RtlLeftChild(RtlParent(G)) = N;
+                        RtlRightChild(RtlParent(G)) = N;
                     }
                 }
 
@@ -477,7 +477,7 @@
                          * G was a right child, so change its parent's
right
                          * child link to point to N now.
                          */
-                        RtlLeftChild(RtlParent(G)) = N;
+                        RtlRightChild(RtlParent(G)) = N;
                     }
                 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051109/6cb0971d/attachment.html


More information about the Ros-diffs mailing list