aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Win32/Thread.c
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-09-07 09:32:07 +0300
committerMikhail Romanko <me@blankhex.com>2025-09-07 09:32:07 +0300
commitec830671843264867a5ce9ba38ab446995657537 (patch)
treef7afa3e7db11f664300089c4e3aefa284a99195e /src/Platform/Win32/Thread.c
parent8d18e8020cba60c0b600c69c709ef1a63833a178 (diff)
downloadbhlib-ec830671843264867a5ce9ba38ab446995657537.tar.gz
Fix Win32 _beginthreadex call
Diffstat (limited to 'src/Platform/Win32/Thread.c')
-rw-r--r--src/Platform/Win32/Thread.c2
1 files changed, 1 insertions, 1 deletions
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);