mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
fix uninitialized variable
svn path=/trunk/; revision=14678
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user