From 7387044863f4b2c50c1cf38ee18ee0fcca37720d Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Thu, 28 Aug 2008 12:03:46 +0000 Subject: [PATCH] Fix uninitialised event handles in asio::detail::thread in external mode. [SVN r48414] --- include/boost/asio/detail/win_thread.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/asio/detail/win_thread.hpp b/include/boost/asio/detail/win_thread.hpp index 123ced72..fe95b3fb 100644 --- a/include/boost/asio/detail/win_thread.hpp +++ b/include/boost/asio/detail/win_thread.hpp @@ -80,6 +80,11 @@ public: boost::throw_exception(e); } } + else + { + arg->entry_event_ = 0; + arg->exit_event_ = 0; + } unsigned int thread_id = 0; thread_ = reinterpret_cast(::_beginthreadex(0, 0,