Author: jgardou Date: Tue Feb 17 20:41:40 2015 New Revision: 66340
URL: http://svn.reactos.org/svn/reactos?rev=66340&view=rev Log: [NTOS] - Properly close handle thread when failing to start it.
Modified: trunk/reactos/ntoskrnl/ps/thread.c
Modified: trunk/reactos/ntoskrnl/ps/thread.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/thread.c?rev=66... ============================================================================== --- trunk/reactos/ntoskrnl/ps/thread.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ps/thread.c [iso-8859-1] Tue Feb 17 20:41:40 2015 @@ -481,7 +481,7 @@ ObDereferenceObject(Thread);
/* Close its handle, killing it */ - ObCloseHandle(ThreadHandle, PreviousMode); + ObCloseHandle(hThread, PreviousMode);
/* Return the exception code */ _SEH2_YIELD(return _SEH2_GetExceptionCode()); @@ -523,7 +523,7 @@ ObDereferenceObject(Thread);
/* Close its handle, killing it */ - ObCloseHandle(ThreadHandle, PreviousMode); + ObCloseHandle(hThread, PreviousMode); return Status; }