|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50947 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2009-02-01 07:41:02
Author: chris_kohlhoff
Date: 2009-02-01 07:41:01 EST (Sun, 01 Feb 2009)
New Revision: 50947
URL: http://svn.boost.org/trac/boost/changeset/50947
Log:
Ensure arguments to windows::overlapped_ptr::complete() are passed through to
the completion handler. Fixes #2614.
Text files modified:
trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp 2009-02-01 07:41:01 EST (Sun, 01 Feb 2009)
@@ -103,7 +103,8 @@
{
if (ptr_)
{
- ptr_->io_service_.post_completion(ptr_, 0, 0);
+ ptr_->ec_ = ec;
+ ptr_->io_service_.post_completion(ptr_, 0, bytes_transferred);
ptr_ = 0;
}
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk