diff --git a/include/boost/process/v2/detail/process_handle_windows.hpp b/include/boost/process/v2/detail/process_handle_windows.hpp index 721f4f952..88307531f 100644 --- a/include/boost/process/v2/detail/process_handle_windows.hpp +++ b/include/boost/process/v2/detail/process_handle_windows.hpp @@ -85,13 +85,13 @@ struct basic_process_handle_win template basic_process_handle_win(basic_process_handle_win && other) - : pid_(handle.pid_), handle_(std::move(other.handle_)) + : pid_(other.pid_), handle_(std::move(other.handle_)) { other.pid_ = static_cast(-1); } basic_process_handle_win(basic_process_handle_win && other) - : pid_(handle.pid_), handle_(std::move(other.handle_)) + : pid_(other.pid_), handle_(std::move(other.handle_)) { other.pid_ = static_cast(-1); }