diff options
| author | Mikhail Romanko <me@blankhex.com> | 2024-06-16 12:25:16 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2024-06-16 12:25:16 +0300 |
| commit | d8b9e97e0787f7672e35d66101f093c677929211 (patch) | |
| tree | f0982a54381216585c49ac6e7028ea3c98c5eb85 | |
| parent | ecab74bb2233e5f3dfc59698a6296366209ab9b1 (diff) | |
| download | bhlib-old-d8b9e97e0787f7672e35d66101f093c677929211.tar.gz | |
Fix error in thread creation function on Windows
| -rw-r--r-- | src/thread_win.c | 2 |
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) |
