Author: fireball
Date: Mon Jul 21 07:14:23 2008
New Revision: 34635
URL:
http://svn.reactos.org/svn/reactos?rev=34635&view=rev
Log:
- Include a "System Idle Process" as the first item in QSI
SystemProcessInformation.
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c (contents, props changed)
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Mon Jul 21 07:14:23 2008
@@ -717,7 +717,7 @@
}
RtlZeroMemory(Spi, Size);
- syspr = PsGetNextProcess(NULL);
+ syspr = PsIdleProcess;
pr = syspr;
pCur = (unsigned char *)Spi;
@@ -812,6 +812,9 @@
ThreadInfo++;
current_entry = current_entry->Flink;
}
+
+ /* Handle idle process entry */
+ if (pr == PsIdleProcess) pr = NULL;
pr = PsGetNextProcess(pr);
nThreads = 0;
Propchange: trunk/reactos/ntoskrnl/ex/sysinfo.c
------------------------------------------------------------------------------
--- svn:needs-lock (original)
+++ svn:needs-lock (removed)
@@ -1,1 +1,0 @@
-*