aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2024-06-16 12:25:16 +0300
committerMikhail Romanko <me@blankhex.com>2024-06-16 12:25:16 +0300
commitd8b9e97e0787f7672e35d66101f093c677929211 (patch)
treef0982a54381216585c49ac6e7028ea3c98c5eb85
parentecab74bb2233e5f3dfc59698a6296366209ab9b1 (diff)
downloadbhlib-old-d8b9e97e0787f7672e35d66101f093c677929211.tar.gz
Fix error in thread creation function on Windows
-rw-r--r--src/thread_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread_win.c b/src/thread_win.c
index 16a6d68..cbcef8d 100644
--- a/src/thread_win.c
+++ b/src/thread_win.c
@@ -46,7 +46,7 @@ int bh_thread_init_base(bh_thread_t *thread,
/* Create and setup thread (relative to the callers libc) */
thread->allocated = 0;
- thread->handle = (HANDLE)_beginthreadex(NULL, 0, bh_thread_run, data, 0, NULL);
+ thread->handle = (HANDLE)begin(NULL, 0, bh_thread_run, data, 0, NULL);
/* Check for errors */
if (!thread->handle)