mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 13:51:27 +00:00
rthreads: early return if thread was null (temporary fix for shutdown crash in win98)
This commit is contained in:
parent
e3d68cd131
commit
9c49b693f3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user