Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #39 from uecasm/patch-1
Browse files Browse the repository at this point in the history
Fix basic_pipe move constructor
  • Loading branch information
klemens-morgenstern committed Nov 1, 2016
2 parents 0175969 + 5c386ea commit ee01985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/process/detail/windows/basic_pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ basic_pipe<Char, Traits>& basic_pipe<Char, Traits>::operator=(const basic_pipe &
template<class Char, class Traits>
basic_pipe<Char, Traits>& basic_pipe<Char, Traits>::operator=(basic_pipe && lhs)
{
if (_source == ::boost::detail::winapi::INVALID_HANDLE_VALUE_)
if (_source != ::boost::detail::winapi::INVALID_HANDLE_VALUE_)
::boost::detail::winapi::CloseHandle(_source);

if (_sink == ::boost::detail::winapi::INVALID_HANDLE_VALUE_)
if (_sink != ::boost::detail::winapi::INVALID_HANDLE_VALUE_)
::boost::detail::winapi::CloseHandle(_sink);

_source = lhs._source;
Expand Down

0 comments on commit ee01985

Please sign in to comment.