rthreads: early return if thread was null (temporary fix for shutdown crash in win98)

This commit is contained in:
Brad Parker 2017-08-22 23:41:58 -04:00
parent e3d68cd131
commit 9c49b693f3

View File

@ -231,6 +231,8 @@ int sthread_detach(sthread_t *thread)
*/
void sthread_join(sthread_t *thread)
{
if (!thread)
return;
#ifdef USE_WIN32_THREADS
WaitForSingleObject(thread->thread, INFINITE);
CloseHandle(thread->thread);