mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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;
|
SpiCur = (PSYSTEM_PROCESS_INFORMATION)pCur;
|
||||||
|
|
||||||
current_entry = pr->ThreadListHead.Flink;
|
nThreads = 0;
|
||||||
while (current_entry != &pr->ThreadListHead)
|
current_entry = pr->ThreadListHead.Flink;
|
||||||
{
|
while (current_entry != &pr->ThreadListHead)
|
||||||
nThreads++;
|
{
|
||||||
current_entry = current_entry->Flink;
|
nThreads++;
|
||||||
}
|
current_entry = current_entry->Flink;
|
||||||
|
}
|
||||||
|
|
||||||
// size of the structure for every process
|
// size of the structure for every process
|
||||||
curSize = sizeof(SYSTEM_PROCESS_INFORMATION)-sizeof(SYSTEM_THREAD_INFORMATION)+sizeof(SYSTEM_THREAD_INFORMATION)*nThreads;
|
curSize = sizeof(SYSTEM_PROCESS_INFORMATION)-sizeof(SYSTEM_THREAD_INFORMATION)+sizeof(SYSTEM_THREAD_INFORMATION)*nThreads;
|
||||||
|
|
Loading…
Reference in a new issue