diff --git a/src/OpenThreads/win32/Win32Thread.cpp b/src/OpenThreads/win32/Win32Thread.cpp index 253c41cf5..c80e1cb3b 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; }