Free process data when LPC port is closed, not when process is terminated,

'cause there now might be a "hide desktop" request coming in after process
termination

svn path=/trunk/; revision=12302
This commit is contained in:
Gé van Geldorp
2004-12-23 18:02:12 +00:00
parent ceedef9d54
commit 52bbffc39f
2 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -1,4 +1,4 @@
/* $Id: process.c,v 1.37 2004/12/18 19:23:05 gvg Exp $
/* $Id: process.c,v 1.38 2004/12/23 18:02:12 gvg Exp $
*
* reactos/subsys/csrss/api/process.c
*
@@ -270,9 +270,7 @@ CSR_API(CsrTerminateProcess)
return(Reply->Status = STATUS_INVALID_PARAMETER);
}
Status = CsrFreeProcessData(ProcessData->ProcessId);
Reply->Status = Status;
Reply->Status = STATUS_SUCCESS;
return Status;
}
+2 -2
View File
@@ -1,4 +1,4 @@
/* $Id: desktopbg.c,v 1.13 2004/12/21 21:38:26 weiden Exp $
/* $Id: desktopbg.c,v 1.14 2004/12/23 18:02:12 gvg Exp $
*
* reactos/subsys/csrss/win32csr/desktopbg.c
*
@@ -326,7 +326,7 @@ CSR_API(CsrHideDesktop)
/* The hDesktop handle is only valid while processing this request! */
DPRINT1("CsrHideDesktop (hwnd: 0x%x) (PID:%d)\n", Request->Data.ShowDesktopRequest.DesktopWindow, GetCurrentProcessId());
DPRINT("CsrHideDesktop (hwnd: 0x%x) (PID:%d)\n", Request->Data.ShowDesktopRequest.DesktopWindow, GetCurrentProcessId());
Reply->Header.MessageSize = sizeof(CSRSS_API_REPLY);
Reply->Header.DataSize = sizeof(CSRSS_API_REPLY) - LPC_MESSAGE_BASE_SIZE;