mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
- Don't loop indefintely in RtlFindUnicodePrefix if the splaylinks have changed inside the loop.
svn path=/trunk/; revision=19058
This commit is contained in:
parent
d68f0cbd56
commit
f2ff67ecde
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue