Author: tkreuzer
Date: Mon Jun 9 15:57:30 2008
New Revision: 33912
URL:
http://svn.reactos.org/svn/reactos?rev=33912&view=rev
Log:
fix an endless loop bug
See issue #2142 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/class.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/class.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/class.c [iso-8859-1] Mon Jun 9 15:57:30
2008
@@ -590,10 +590,13 @@
else
PrevLink = &pi->LocalClassList;
- while (*PrevLink != BaseClass)
+ CurrentClass = *PrevLink;
+ while (CurrentClass != BaseClass)
{
- ASSERT(*PrevLink != NULL);
- PrevLink = &BaseClass->Next;
+ ASSERT(CurrentClass != NULL);
+
+ PrevLink = &CurrentClass->Next;
+ CurrentClass = CurrentClass->Next;
}
ASSERT(*PrevLink == BaseClass);