[CSRSS]: Fix yet another bug in the unused csrss code.
authorSir Richard <sir_richard@svn.reactos.org>
Tue, 9 Mar 2010 18:22:25 +0000 (18:22 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Tue, 9 Mar 2010 18:22:25 +0000 (18:22 +0000)
svn path=/trunk/; revision=46040

reactos/subsystems/csr/csrsrv/thread.c

index ca7c632..ad71435 100644 (file)
@@ -157,7 +157,7 @@ CsrLocateThreadInProcess(IN PCSR_PROCESS CsrProcess OPTIONAL,
     NextEntry = ListHead->Flink;
 
     /* Start the Loop */
-    while (NextEntry != NextEntry)
+    while (NextEntry != ListHead)
     {
         /* Get Thread Entry */
         FoundThread = CONTAINING_RECORD(NextEntry, CSR_THREAD, Link);