mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
fix uninitialized variable
svn path=/trunk/; revision=14678
This commit is contained in:
parent
0331e3dfe8
commit
9c23880fd4
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue