Commit in reactos/ntoskrnl/ex on MAIN
sysinfo.c+8-21.31 -> 1.32
- Dereference the idle process in some of the NtQuerySystemInformation functions.

reactos/ntoskrnl/ex
sysinfo.c 1.31 -> 1.32
diff -u -r1.31 -r1.32
--- sysinfo.c	26 Apr 2004 05:46:35 -0000	1.31
+++ sysinfo.c	28 Apr 2004 20:50:02 -0000	1.32
@@ -1,4 +1,4 @@
-/* $Id: sysinfo.c,v 1.31 2004/04/26 05:46:35 jimtabor Exp $
+/* $Id: sysinfo.c,v 1.32 2004/04/28 20:50:02 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -446,7 +446,9 @@
 	Spi->FirstLevelTbFills = 0; /* FIXME */
 	Spi->SecondLevelTbFills = 0; /* FIXME */
 	Spi->SystemCalls = 0; /* FIXME */
-	
+
+	ObDereferenceObject(TheIdleProcess);
+
 	return (STATUS_SUCCESS);
 }
 
@@ -653,6 +655,8 @@
         Spi->TotalDPCTime.QuadPart = KiDpcTime * 100000;
         Spi->TotalInterruptTime = CurrentTime;
         Spi->TotalInterrupts = CurrentTime.QuadPart / 100000; // Interrupt Count
+
+	ObDereferenceObject(TheIdleProcess);
         
 	return (STATUS_SUCCESS);
 }
@@ -831,6 +835,8 @@
 	
 	*Spi = MiMemoryConsumers[MC_USER].PagesUsed;
 
+	ObDereferenceObject(TheIdleProcess);
+
 	return (STATUS_SUCCESS);
 }
 
CVSspam 0.2.8