Win32(core): do not duplicate handle
Unlike _endthread and ExitThread, _endthreadex doesn't close the handle. It is therefore up to the caller to close it. Hence no need for an extra handle duplication (that mostly amounted to a memory leak when the normal path was used, i.e normal return from thread with implicit _endthreadex)
Showing
Please register or sign in to comment