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