fix uninitialized variable

svn path=/trunk/; revision=14678
This commit is contained in:
Thomas Bluemel 2005-04-18 19:26:12 +00:00
parent 0331e3dfe8
commit 9c23880fd4

View file

@ -587,12 +587,13 @@ QSI_DEF(SystemProcessInformation)
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)+sizeof(SYSTEM_THREAD_INFORMATION)*nThreads;