Author: jmorlan
Date: Wed Aug 20 14:15:00 2008
New Revision: 35487
URL:
http://svn.reactos.org/svn/reactos?rev=35487&view=rev
Log:
Fix infinite loop during generic table lookups. Patch by Alex Ionescu
Modified:
trunk/reactos/lib/rtl/generictable.c
Modified: trunk/reactos/lib/rtl/generictable.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/generictable.c?rev…
==============================================================================
--- trunk/reactos/lib/rtl/generictable.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/generictable.c [iso-8859-1] Wed Aug 20 14:15:00 2008
@@ -57,7 +57,7 @@
if ((ChildNode = RtlLeftChild(CurrentNode)))
{
/* Continue searching from this node */
- ChildNode = CurrentNode;
+ CurrentNode = ChildNode;
}
else
{
@@ -72,7 +72,7 @@
if ((ChildNode = RtlRightChild(CurrentNode)))
{
/* Continue searching from this node */
- ChildNode = CurrentNode;
+ CurrentNode = ChildNode;
}
else
{