diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/llthread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llthread.c b/src/llthread.c index eee7290..eb0c861 100644 --- a/src/llthread.c +++ b/src/llthread.c | |||
| @@ -384,6 +384,9 @@ static int llthread_start(llthread_t *this, int start_detached, int joinable) { | |||
| 384 | 384 | ||
| 385 | #ifndef USE_PTHREAD | 385 | #ifndef USE_PTHREAD |
| 386 | this->thread = (HANDLE)_beginthreadex(NULL, 0, llthread_child_thread_run, child, 0, NULL); | 386 | this->thread = (HANDLE)_beginthreadex(NULL, 0, llthread_child_thread_run, child, 0, NULL); |
| 387 | if(0 == this->thread){ | ||
| 388 | this->thread = INVALID_THREAD; | ||
| 389 | } | ||
| 387 | if(INVALID_THREAD == this->thread){ | 390 | if(INVALID_THREAD == this->thread){ |
| 388 | rc = -1; | 391 | rc = -1; |
| 389 | } | 392 | } |
