diff --git a/port/win/win_thread.cc b/port/win/win_thread.cc index 749332032..8c1d68a7b 100644 --- a/port/win/win_thread.cc +++ b/port/win/win_thread.cc @@ -166,7 +166,6 @@ unsigned int __stdcall WindowsThread::Data::ThreadProc(void* arg) { auto ptr = reinterpret_cast*>(arg); std::unique_ptr> data(ptr); (*data)->func_(); - _endthreadex(0); return 0; } } // namespace port