mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix Process not being deleted
svn path=/trunk/; revision=14664
This commit is contained in:
parent
6829bd8c8b
commit
9cafa059bd
3 changed files with 4 additions and 4 deletions
|
@ -90,6 +90,7 @@ NTSTATUS MmReleaseMemoryArea(PEPROCESS Process, PMEMORY_AREA Marea)
|
|||
return(STATUS_SUCCESS);
|
||||
|
||||
case MEMORY_AREA_VIRTUAL_MEMORY:
|
||||
case MEMORY_AREA_PEB_OR_TEB:
|
||||
MmFreeVirtualMemory(Process, Marea);
|
||||
break;
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ PspDeleteProcess(PVOID ObjectBody)
|
|||
{
|
||||
PEPROCESS Process = (PEPROCESS)ObjectBody;
|
||||
|
||||
DPRINT("PiDeleteProcess(ObjectBody %x)\n",Process);
|
||||
DPRINT1("PiDeleteProcess(ObjectBody %x)\n",Process);
|
||||
|
||||
/* Delete the CID Handle */
|
||||
if(Process->UniqueProcessId != NULL) {
|
||||
|
|
|
@ -427,8 +427,7 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
|||
/* FIXME: ObGetObjectSecurity(Process, &SecurityDescriptor)
|
||||
SeAccessCheck
|
||||
*/
|
||||
ObReferenceObject(Process);
|
||||
ObReferenceObject(Process);
|
||||
ObDereferenceObject(Process);
|
||||
return Status;
|
||||
|
||||
exitdereferenceobjects:
|
||||
|
|
Loading…
Reference in a new issue