diff --git a/include/boost/thread/win32/thread_primitives.hpp b/include/boost/thread/win32/thread_primitives.hpp index e0751401d..391d73758 100644 --- a/include/boost/thread/win32/thread_primitives.hpp +++ b/include/boost/thread/win32/thread_primitives.hpp @@ -102,7 +102,7 @@ namespace boost handle const res = ::boost::winapi::CreateEventExW( 0, mutex_name, - type ? create_event_manual_reset : 0 | state ? create_event_initial_set : 0, + (type ? create_event_manual_reset : 0) | (state ? create_event_initial_set : 0), event_all_access); #endif return res;