From ec830671843264867a5ce9ba38ab446995657537 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Sun, 7 Sep 2025 09:32:07 +0300 Subject: [PATCH] Fix Win32 _beginthreadex call --- src/Platform/Win32/Thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platform/Win32/Thread.c b/src/Platform/Win32/Thread.c index f256d87..88b8906 100644 --- a/src/Platform/Win32/Thread.c +++ b/src/Platform/Win32/Thread.c @@ -40,7 +40,7 @@ static int threadInit(BH_Thread *thread, context->callback = callback; context->data = data; - thread->handle = (HANDLE)_beginthreadex(NULL, stack, BH_ThreadRun, context, 0, NULL); + thread->handle = (HANDLE)_beginthreadex(NULL, stack, threadRun, context, 0, NULL); if (!thread->handle) { free(context);