From f2ff67ecde8dbd8a0039605079ad3f6de03cf425 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 8 Nov 2005 17:14:19 +0000 Subject: [PATCH] - Don't loop indefintely in RtlFindUnicodePrefix if the splaylinks have changed inside the loop. svn path=/trunk/; revision=19058 --- reactos/lib/rtl/unicodeprefix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/unicodeprefix.c b/reactos/lib/rtl/unicodeprefix.c index f8851ae5130..bed8483d788 100644 --- a/reactos/lib/rtl/unicodeprefix.c +++ b/reactos/lib/rtl/unicodeprefix.c @@ -10,7 +10,7 @@ #include -#define NDEBUG +//#define NDEBUG #include /* @@ -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);