mirror of
https://github.com/reactos/reactos.git
synced 2026-07-03 08:34:46 +08:00
Added two missing dereferencing calls in NtTerminateThread.
svn path=/trunk/; revision=14187
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user