Don't return end_of_stream on win32 file body writes

This commit is contained in:
Vinnie Falco
2017-10-23 12:02:48 -07:00
parent 8312c6eb86
commit e146f2c7be
2 changed files with 1 additions and 4 deletions

View File

@ -4,6 +4,7 @@ Version 126:
* Update README.md
* Update stream write documentation for end of stream changes
* Tidy up unused variable warnings
* Don't return end_of_stream on win32 file body writes
--------------------------------------------------------------------------------

View File

@ -471,8 +471,6 @@ operator()(
sr_.next(ec, null_lambda{});
BOOST_ASSERT(! ec);
BOOST_ASSERT(sr_.is_done());
if(! sr_.keep_alive())
ec = error::end_of_stream;
}
}
h_(ec, bytes_transferred_);
@ -544,8 +542,6 @@ write_some(
sr.next(ec, detail::null_lambda{});
BOOST_ASSERT(! ec);
BOOST_ASSERT(sr.is_done());
if(! sr.keep_alive())
ec = error::end_of_stream;
}
return nNumberOfBytesToWrite;
}