fix uninitialized variable
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
_____
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
--- trunk/reactos/ntoskrnl/ex/sysinfo.c 2005-04-18 19:22:50 UTC (rev
14677)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c 2005-04-18 19:26:12 UTC (rev
14678)
@@ -587,12 +587,13 @@
SpiCur = (PSYSTEM_PROCESS_INFORMATION)pCur;
- current_entry = pr->ThreadListHead.Flink;
- while (current_entry != &pr->ThreadListHead)
- {
- nThreads++;
- current_entry = current_entry->Flink;
- }
+ nThreads = 0;
+ current_entry = pr->ThreadListHead.Flink;
+ while (current_entry != &pr->ThreadListHead)
+ {
+ nThreads++;
+ current_entry = current_entry->Flink;
+ }
// size of the structure for every process
curSize =
sizeof(SYSTEM_PROCESS_INFORMATION)-sizeof(SYSTEM_THREAD_INFORMATION)+siz
eof(SYSTEM_THREAD_INFORMATION)*nThreads;