diff --git a/src/OpenThreads/win32/Win32Thread.cpp b/src/OpenThreads/win32/Win32Thread.cpp index 7e17f8362..5c1099947 100644 --- a/src/OpenThreads/win32/Win32Thread.cpp +++ b/src/OpenThreads/win32/Win32Thread.cpp @@ -345,13 +345,13 @@ int Thread::start() { pd->uniqueId = (int)ID; - // wait till the thread has actually started. - pd->threadStartedBlock.block(); - if(!pd->tid) { return -1; } + // wait till the thread has actually started. + pd->threadStartedBlock.block(); + return 0; }