mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
[ntoskrnl/ps]
- Revert r48857. The Process object is dereferenced when the Thread object is destroyed, so dont dereference it here. svn path=/trunk/; revision=48859
This commit is contained in:
parent
0059b61f9c
commit
2c5e05984a
1 changed files with 0 additions and 6 deletions
|
@ -280,7 +280,6 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
|||
{
|
||||
/* We couldn't create the CID, dereference the thread and fail */
|
||||
ObDereferenceObject(Thread);
|
||||
ObDereferenceObject(Process);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
@ -302,7 +301,6 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
|||
{
|
||||
/* Fail */
|
||||
ObDereferenceObject(Thread);
|
||||
ObDereferenceObject(Process);
|
||||
return STATUS_PROCESS_IS_TERMINATING;
|
||||
}
|
||||
|
||||
|
@ -316,7 +314,6 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
|||
/* Failed to create the TEB. Release rundown and dereference */
|
||||
ExReleaseRundownProtection(&Process->RundownProtect);
|
||||
ObDereferenceObject(Thread);
|
||||
ObDereferenceObject(Process);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -360,7 +357,6 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
|||
/* Release rundown and dereference */
|
||||
ExReleaseRundownProtection(&Process->RundownProtect);
|
||||
ObDereferenceObject(Thread);
|
||||
ObDereferenceObject(Process);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -435,7 +431,6 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
|||
|
||||
/* Dereference completely to kill it */
|
||||
ObDereferenceObjectEx(Thread, 2);
|
||||
ObDereferenceObject(Process);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -518,7 +513,6 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
|||
|
||||
/* Close its handle, killing it */
|
||||
ObCloseHandle(ThreadHandle, PreviousMode);
|
||||
ObDereferenceObject(Process);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue