Fix infinite loop in PspDumpThreads
authorJeffrey Morlan <mrnobo1024@yahoo.com>
Thu, 26 Jun 2008 16:23:45 +0000 (16:23 +0000)
committerJeffrey Morlan <mrnobo1024@yahoo.com>
Thu, 26 Jun 2008 16:23:45 +0000 (16:23 +0000)
svn path=/trunk/; revision=34108

reactos/ntoskrnl/ps/debug.c

index 42db185..bb2fc03 100644 (file)
@@ -78,10 +78,10 @@ PspDumpThreads(BOOLEAN IncludeSystem)
                     /* Print a new line if there's nothing */
                     if((i % 8) != 0) DbgPrint("\n");
                 }
-            }
 
-            /* Move to the next Thread */
-         CurrentThread = CurrentThread->Flink;
+                /* Move to the next Thread */
+                CurrentThread = CurrentThread->Flink;
+            }
         }
 
         /* Move to the next Process */