aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)