diff --git a/reactos/lib/rtl/generictable.c b/reactos/lib/rtl/generictable.c index 508eea3f8f8..8f8c0ee91ed 100644 --- a/reactos/lib/rtl/generictable.c +++ b/reactos/lib/rtl/generictable.c @@ -57,7 +57,7 @@ RtlpFindGenericTableNodeOrParent(IN PRTL_GENERIC_TABLE Table, if ((ChildNode = RtlLeftChild(CurrentNode))) { /* Continue searching from this node */ - ChildNode = CurrentNode; + CurrentNode = ChildNode; } else { @@ -72,7 +72,7 @@ RtlpFindGenericTableNodeOrParent(IN PRTL_GENERIC_TABLE Table, if ((ChildNode = RtlRightChild(CurrentNode))) { /* Continue searching from this node */ - ChildNode = CurrentNode; + CurrentNode = ChildNode; } else {