Commit in reactos/lib/kernel32/process on MAIN
proc.c+6-91.69 -> 1.70
the last parameter of NtQueryInformationProcess() is optional, don't use it when not needed.

reactos/lib/kernel32/process
proc.c 1.69 -> 1.70
diff -u -r1.69 -r1.70
--- proc.c	2 Oct 2004 21:14:08 -0000	1.69
+++ proc.c	19 Oct 2004 10:27:11 -0000	1.70
@@ -1,4 +1,4 @@
-/* $Id: proc.c,v 1.69 2004/10/02 21:14:08 weiden Exp $
+/* $Id: proc.c,v 1.70 2004/10/19 10:27:11 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -41,14 +41,13 @@
 			LPDWORD lpSystemAffinityMask)
 {
   PROCESS_BASIC_INFORMATION ProcessInfo;
-  ULONG BytesWritten;
   NTSTATUS Status;
 
   Status = NtQueryInformationProcess (hProcess,
 				      ProcessBasicInformation,
 				      (PVOID)&ProcessInfo,
 				      sizeof(PROCESS_BASIC_INFORMATION),
-				      &BytesWritten);
+				      NULL);
   if (!NT_SUCCESS(Status))
     {
       SetLastErrorByStatus (Status);
@@ -280,14 +279,13 @@
 		   LPDWORD lpExitCode)
 {
   PROCESS_BASIC_INFORMATION ProcessBasic;
-  ULONG BytesWritten;
   NTSTATUS Status;
 
   Status = NtQueryInformationProcess(hProcess,
 				     ProcessBasicInformation,
 				     &ProcessBasic,
 				     sizeof(PROCESS_BASIC_INFORMATION),
-				     &BytesWritten);
+				     NULL);
   if (!NT_SUCCESS(Status))
     {
       SetLastErrorByStatus(Status);
@@ -308,14 +306,13 @@
 	     LPDWORD lpProcessId)
 {
   PROCESS_BASIC_INFORMATION ProcessBasic;
-  ULONG BytesWritten;
   NTSTATUS Status;
 
   Status = NtQueryInformationProcess(hProcess,
 				     ProcessBasicInformation,
 				     &ProcessBasic,
 				     sizeof(PROCESS_BASIC_INFORMATION),
-				     &BytesWritten);
+				     NULL);
   if (!NT_SUCCESS(Status))
     {
       SetLastErrorByStatus(Status);
@@ -949,14 +946,14 @@
 GetProcessHandleCount(HANDLE hProcess,
                       PDWORD pdwHandleCount)
 {
-    ULONG phc, BytesWritten;
+    ULONG phc;
     NTSTATUS Status;
 
     Status = NtQueryInformationProcess(hProcess,
                                        ProcessHandleCount,
                                        &phc,
                                        sizeof(ULONG),
-                                       &BytesWritten);
+                                       NULL);
     if(NT_SUCCESS(Status))
     {
       *pdwHandleCount = phc;
CVSspam 0.2.8