mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Added two missing dereferencing calls in NtTerminateThread.
svn path=/trunk/; revision=14187
This commit is contained in:
parent
e54de54618
commit
c2a04f5107
1 changed files with 3 additions and 0 deletions
|
@ -473,6 +473,7 @@ NtTerminateThread(IN HANDLE ThreadHandle,
|
|||
if (PsIsSystemThread(Thread)) {
|
||||
|
||||
DPRINT1("Trying to Terminate a system thread!\n");
|
||||
ObDereferenceObject(Thread);
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
@ -490,9 +491,11 @@ NtTerminateThread(IN HANDLE ThreadHandle,
|
|||
}
|
||||
|
||||
} else {
|
||||
ObDereferenceObject(Thread);
|
||||
|
||||
/* Terminate him, he's ours */
|
||||
PspExitThread(ExitStatus);
|
||||
/* We do never reach this point */
|
||||
}
|
||||
|
||||
/* Dereference the Thread and return */
|
||||
|
|
Loading…
Reference in a new issue