Fix Process not being deleted

svn path=/trunk/; revision=14664
This commit is contained in:
Alex Ionescu 2005-04-18 04:55:48 +00:00
parent 6829bd8c8b
commit 9cafa059bd
3 changed files with 4 additions and 4 deletions

View file

@ -90,6 +90,7 @@ NTSTATUS MmReleaseMemoryArea(PEPROCESS Process, PMEMORY_AREA Marea)
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
case MEMORY_AREA_VIRTUAL_MEMORY: case MEMORY_AREA_VIRTUAL_MEMORY:
case MEMORY_AREA_PEB_OR_TEB:
MmFreeVirtualMemory(Process, Marea); MmFreeVirtualMemory(Process, Marea);
break; break;

View file

@ -151,7 +151,7 @@ PspDeleteProcess(PVOID ObjectBody)
{ {
PEPROCESS Process = (PEPROCESS)ObjectBody; PEPROCESS Process = (PEPROCESS)ObjectBody;
DPRINT("PiDeleteProcess(ObjectBody %x)\n",Process); DPRINT1("PiDeleteProcess(ObjectBody %x)\n",Process);
/* Delete the CID Handle */ /* Delete the CID Handle */
if(Process->UniqueProcessId != NULL) { if(Process->UniqueProcessId != NULL) {

View file

@ -427,9 +427,8 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
/* FIXME: ObGetObjectSecurity(Process, &SecurityDescriptor) /* FIXME: ObGetObjectSecurity(Process, &SecurityDescriptor)
SeAccessCheck SeAccessCheck
*/ */
ObReferenceObject(Process); ObDereferenceObject(Process);
ObReferenceObject(Process); return Status;
return Status;
exitdereferenceobjects: exitdereferenceobjects:
if(SectionObject != NULL) ObDereferenceObject(SectionObject); if(SectionObject != NULL) ObDereferenceObject(SectionObject);