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);
|
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;
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue