From bebe40f7814ca36f898f95b39c21fa8c42ae88cf Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 13 Mar 2023 23:23:10 -0500 Subject: [PATCH] fix(thread): windows threads are not suspended by default --- storm/thread/win/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storm/thread/win/Thread.cpp b/storm/thread/win/Thread.cpp index 62240e5..7b6e1da 100644 --- a/storm/thread/win/Thread.cpp +++ b/storm/thread/win/Thread.cpp @@ -45,7 +45,7 @@ void* SCreateThread(uint32_t (*threadProc)(void*), void* threadParam, void* a3, DWORD threadId; // TODO pass dwStackSize and dwCreationFlags through to CreateThread - HANDLE threadH = CreateThread(nullptr, 0, S_Thread::s_SLaunchThread, params, CREATE_SUSPENDED, &threadId); + HANDLE threadH = CreateThread(nullptr, 0, S_Thread::s_SLaunchThread, params, 0x0, &threadId); params->threadH = threadH; auto& thread = S_Thread::s_threads[S_Thread::s_numthreads];