Fix infinite loop during generic table lookups. Patch by Alex Ionescu

svn path=/trunk/; revision=35487
This commit is contained in:
Jeffrey Morlan 2008-08-20 19:15:00 +00:00
parent 46ba64139f
commit fca286cbda

View file

@ -57,7 +57,7 @@ RtlpFindGenericTableNodeOrParent(IN PRTL_GENERIC_TABLE Table,
if ((ChildNode = RtlLeftChild(CurrentNode))) if ((ChildNode = RtlLeftChild(CurrentNode)))
{ {
/* Continue searching from this node */ /* Continue searching from this node */
ChildNode = CurrentNode; CurrentNode = ChildNode;
} }
else else
{ {
@ -72,7 +72,7 @@ RtlpFindGenericTableNodeOrParent(IN PRTL_GENERIC_TABLE Table,
if ((ChildNode = RtlRightChild(CurrentNode))) if ((ChildNode = RtlRightChild(CurrentNode)))
{ {
/* Continue searching from this node */ /* Continue searching from this node */
ChildNode = CurrentNode; CurrentNode = ChildNode;
} }
else else
{ {