winrp/thread: don't call pthread_exit on return

As the pthread_exit man page states pthread_exit is called implicitly
when the start function returns.
This commit is contained in:
Bernhard Miklautz 2015-07-24 14:52:31 +02:00
parent ca150f2255
commit 81d422588e

View File

@ -327,7 +327,7 @@ exit:
if (thread->detached || !thread->started)
cleanup_handle(thread);
}
pthread_exit((void*) (size_t) res);
return rc;
}
static BOOL winpr_StartThread(WINPR_THREAD *thread)