Commit in reactos/subsys/csrss/api on MAIN
process.c+1-61.34 -> 1.35
wapi.c+2-131.35 -> 1.36
+3-19
2 modified files
revert my previous patch

reactos/subsys/csrss/api
process.c 1.34 -> 1.35
diff -u -r1.34 -r1.35
--- process.c	27 Jun 2004 10:16:59 -0000	1.34
+++ process.c	27 Jun 2004 12:21:31 -0000	1.35
@@ -1,4 +1,4 @@
-/* $Id: process.c,v 1.34 2004/06/27 10:16:59 weiden Exp $
+/* $Id: process.c,v 1.35 2004/06/27 12:21:31 weiden Exp $
  *
  * reactos/subsys/csrss/api/process.c
  *
@@ -411,11 +411,6 @@
   Reply->Header.DataSize = sizeof(CSRSS_API_REPLY) - LPC_MESSAGE_BASE_SIZE;
 
   ProcessData = CsrGetProcessData(Request->Data.DuplicateHandleRequest.ProcessId);
-  if (ProcessData == NULL)
-    {
-      DPRINT1("CsrGetProcessData() failed for process 0x%x, unable to dublicate handle\n", Request->Data.DuplicateHandleRequest.ProcessId);
-      return STATUS_INVALID_HANDLE;
-    }
   Reply->Status = CsrGetObject(ProcessData, Request->Data.DuplicateHandleRequest.Handle, &Object);
   if (! NT_SUCCESS(Reply->Status))
     {

reactos/subsys/csrss/api
wapi.c 1.35 -> 1.36
diff -u -r1.35 -r1.36
--- wapi.c	27 Jun 2004 10:16:59 -0000	1.35
+++ wapi.c	27 Jun 2004 12:21:32 -0000	1.36
@@ -1,4 +1,4 @@
-/* $Id: wapi.c,v 1.35 2004/06/27 10:16:59 weiden Exp $
+/* $Id: wapi.c,v 1.36 2004/06/27 12:21:32 weiden Exp $
  * 
  * reactos/subsys/csrss/api/wapi.c
  *
@@ -135,12 +135,7 @@
       Reply = (PCSRSS_API_REPLY)&LpcReply;
 	
       ProcessData = CsrGetProcessData((ULONG)LpcRequest.Header.ClientId.UniqueProcess);
-      if (ProcessData == NULL)
-	{
-          DPRINT1("CSR: Unable to find process data for process 0x%x\n", (ULONG)LpcRequest.Header.ClientId.UniqueProcess);
-          NtClose(ServerPort);
-          continue;
-        }
+
       CsrApiCallHandler(ProcessData, Request, Reply);
     }
 }
@@ -187,12 +182,6 @@
 	  }
 
 	ProcessData = CsrGetProcessData((ULONG)Request.Header.ClientId.UniqueProcess);
-	if (ProcessData == NULL)
-	  {
-	    DPRINT1("CSR: Unable to find process data for process 0x%x\n", (ULONG)Request.Header.ClientId.UniqueProcess);
-	    NtClose(ServerPort);
-	    continue;
-	  }
 	ProcessData->CsrSectionViewBase = LpcRead.ViewBase;
 	ProcessData->CsrSectionViewSize = LpcRead.ViewSize;
 	
CVSspam 0.2.8