mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
- Include a "System Idle Process" as the first item in QSI SystemProcessInformation.
svn path=/trunk/; revision=34635
This commit is contained in:
parent
ee13626507
commit
4e663a7c28
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue