mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
[NTOS]
- Properly close handle thread when failing to start it. svn path=/trunk/; revision=66340
This commit is contained in:
parent
b74ab8276c
commit
8b177cb83f
1 changed files with 2 additions and 2 deletions
|
@ -481,7 +481,7 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
||||||
ObDereferenceObject(Thread);
|
ObDereferenceObject(Thread);
|
||||||
|
|
||||||
/* Close its handle, killing it */
|
/* Close its handle, killing it */
|
||||||
ObCloseHandle(ThreadHandle, PreviousMode);
|
ObCloseHandle(hThread, PreviousMode);
|
||||||
|
|
||||||
/* Return the exception code */
|
/* Return the exception code */
|
||||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||||
|
@ -523,7 +523,7 @@ PspCreateThread(OUT PHANDLE ThreadHandle,
|
||||||
ObDereferenceObject(Thread);
|
ObDereferenceObject(Thread);
|
||||||
|
|
||||||
/* Close its handle, killing it */
|
/* Close its handle, killing it */
|
||||||
ObCloseHandle(ThreadHandle, PreviousMode);
|
ObCloseHandle(hThread, PreviousMode);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue