From 91bbe0cc1f2f944dfc8f474f076cd3f777afd2c0 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 8 Nov 2005 23:42:40 +0000 Subject: [PATCH 1/1] - Fix bug in case 2/4 denomination. svn path=/trunk/; revision=19075 --- reactos/lib/rtl/splaytree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/lib/rtl/splaytree.c b/reactos/lib/rtl/splaytree.c index ecce34ffbff..c315a72e7bb 100644 --- a/reactos/lib/rtl/splaytree.c +++ b/reactos/lib/rtl/splaytree.c @@ -255,13 +255,13 @@ RtlSplay(PRTL_SPLAY_LINKS Links) /* Case 2 & 4: N is right child of P */ else { - /* Case 2: P is the left child of G */ - if (RtlIsLeftChild(P)) + /* Case 2: P is the right child of G */ + if (RtlIsRightChild(P)) { } - /* Case 4: P is the right child of G */ - else if (RtlIsRightChild(P)) + /* Case 4: P is the left child of G */ + else if (RtlIsLeftChild(P)) { } -- 2.17.1