The return value of WaitForInternalThreadToExit has reversed