diff --git a/adb/sysdeps.h b/adb/sysdeps.h index f9f6f6905..3bae09ea1 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h @@ -170,7 +170,7 @@ static __inline__ bool adb_thread_detach(adb_thread_t thread) { } static __inline__ void __attribute__((noreturn)) adb_thread_exit() { - ExitThread(0); + _endthreadex(0); } static __inline__ int adb_thread_setname(const std::string& name) {