- Include a "System Idle Process" as the first item in QSI SystemProcessInformation.

svn path=/trunk/; revision=34635
This commit is contained in:
Aleksey Bragin 2008-07-21 12:14:23 +00:00
parent ee13626507
commit 4e663a7c28

View file

@ -717,7 +717,7 @@ QSI_DEF(SystemProcessInformation)
}
RtlZeroMemory(Spi, Size);
syspr = PsGetNextProcess(NULL);
syspr = PsIdleProcess;
pr = syspr;
pCur = (unsigned char *)Spi;
@ -813,6 +813,9 @@ QSI_DEF(SystemProcessInformation)
current_entry = current_entry->Flink;
}
/* Handle idle process entry */
if (pr == PsIdleProcess) pr = NULL;
pr = PsGetNextProcess(pr);
nThreads = 0;
if ((pr == syspr) || (pr == NULL))