Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84487 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2013-05-25 07:52:54


Author: chris_kohlhoff
Date: 2013-05-25 07:52:54 EDT (Sat, 25 May 2013)
New Revision: 84487
URL: http://svn.boost.org/trac/boost/changeset/84487

Log:
Fix bug on Windows where certain operations might generate an error_code with
an invalid (i.e. NULL) error_category. Refs #8613

Text files modified:
   trunk/boost/asio/detail/impl/win_iocp_io_service.ipp | 9 +++------
   1 files changed, 3 insertions(+), 6 deletions(-)

Modified: trunk/boost/asio/detail/impl/win_iocp_io_service.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/win_iocp_io_service.ipp (original)
+++ trunk/boost/asio/detail/impl/win_iocp_io_service.ipp 2013-05-25 07:52:54 EDT (Sat, 25 May 2013)
@@ -236,8 +236,7 @@
   op->ready_ = 1;
 
   // Enqueue the operation on the I/O completion port.
- if (!::PostQueuedCompletionStatus(iocp_.handle,
- 0, overlapped_contains_result, op))
+ if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))
   {
     // Out of resources. Put on completed queue instead.
     mutex::scoped_lock lock(dispatch_mutex_);
@@ -257,8 +256,7 @@
     op->ready_ = 1;
 
     // Enqueue the operation on the I/O completion port.
- if (!::PostQueuedCompletionStatus(iocp_.handle,
- 0, overlapped_contains_result, op))
+ if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))
     {
       // Out of resources. Put on completed queue instead.
       mutex::scoped_lock lock(dispatch_mutex_);
@@ -285,8 +283,7 @@
   if (::InterlockedCompareExchange(&op->ready_, 1, 0) == 1)
   {
     // Enqueue the operation on the I/O completion port.
- if (!::PostQueuedCompletionStatus(iocp_.handle,
- 0, overlapped_contains_result, op))
+ if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))
     {
       // Out of resources. Put on completed queue instead.
       mutex::scoped_lock lock(dispatch_mutex_);


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