diff options
Diffstat (limited to 'boost/process/detail/windows/handles.hpp')
-rw-r--r-- | boost/process/detail/windows/handles.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/boost/process/detail/windows/handles.hpp b/boost/process/detail/windows/handles.hpp index 451c02fc40..901b339a4f 100644 --- a/boost/process/detail/windows/handles.hpp +++ b/boost/process/detail/windows/handles.hpp @@ -11,6 +11,8 @@ #include <boost/process/detail/windows/handle_workaround.hpp> #include <boost/process/detail/windows/handler.hpp> #include <boost/winapi/get_current_process_id.hpp> +#include <boost/winapi/handles.hpp> +#include <boost/winapi/handle_info.hpp> namespace boost { namespace process { namespace detail { @@ -136,7 +138,7 @@ struct limit_handles_ : handler_base_ext [&](::boost::winapi::HANDLE_ handle) { auto itr = std::find(all_handles.begin(), all_handles .end(), handle); - DWORD flags = 0u; + ::boost::winapi::DWORD_ flags = 0u; if (itr != all_handles.end()) *itr = ::boost::winapi::INVALID_HANDLE_VALUE_; else if ((::boost::winapi::GetHandleInformation(*itr, &flags) != 0) @@ -162,7 +164,7 @@ struct limit_handles_ : handler_base_ext } template<typename Executor> - void on_sucess(Executor & exec) const + void on_success(Executor & exec) const { for (auto handle : handles_with_inherit_flag) ::boost::winapi::SetHandleInformation(handle, ::boost::winapi::HANDLE_FLAG_INHERIT_, ::boost::winapi::HANDLE_FLAG_INHERIT_); |