--- boost\asio\detail\impl\socket_ops.ipp.orig 2010-11-16 11:38:03.540394400 +0000 +++ boost\asio\detail\impl\socket_ops.ipp 2010-11-16 11:40:28.265394400 +0000 @@ -119,7 +119,7 @@ socket_type new_socket = socket_ops::accept(s, addr, addrlen, ec); // Check if operation succeeded. - if (new_socket >= 0) + if (new_socket != invalid_socket) return new_socket; // Operation failed.