- Don't loop indefintely in RtlFindUnicodePrefix if the splaylinks have changed inside the loop.

svn path=/trunk/; revision=19058
This commit is contained in:
Alex Ionescu 2005-11-08 17:14:19 +00:00
parent d68f0cbd56
commit f2ff67ecde

View file

@ -10,7 +10,7 @@
#include <rtl.h>
#define NDEBUG
//#define NDEBUG
#include <debug.h>
/*
@ -179,7 +179,8 @@ RtlFindUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable,
DPRINT("CurrentEntry->NameLength %lx\n", CurrentEntry->NameLength);
/* Get the splay links and loop */
while ((SplayLinks = &CurrentEntry->Links))
SplayLinks = &CurrentEntry->Links;
while (SplayLinks)
{
/* Get the entry */
DPRINT("SplayLinks %p\n", SplayLinks);