- Don't loop indefintely in RtlFindUnicodePrefix if the splaylinks have changed inside the loop.
Modified: trunk/reactos/lib/rtl/unicodeprefix.c

Modified: trunk/reactos/lib/rtl/unicodeprefix.c
--- trunk/reactos/lib/rtl/unicodeprefix.c	2005-11-08 17:07:57 UTC (rev 19057)
+++ trunk/reactos/lib/rtl/unicodeprefix.c	2005-11-08 17:14:19 UTC (rev 19058)
@@ -10,7 +10,7 @@
 
 #include <rtl.h>
 
-#define NDEBUG
+//#define NDEBUG
 #include <debug.h>
 
 /*
@@ -179,7 +179,8 @@
         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);