|
Boost-Commit : |
From: chris_at_[hidden]
Date: 2007-10-29 09:07:09
Author: chris_kohlhoff
Date: 2007-10-29 09:07:08 EDT (Mon, 29 Oct 2007)
New Revision: 40548
URL: http://svn.boost.org/trac/boost/changeset/40548
Log:
Use GetModuleHandleA rather than GetModuleHandle to avoid being broken by
UNICODE #defines.
Text files modified:
trunk/boost/asio/detail/win_iocp_socket_service.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/win_iocp_socket_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_socket_service.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_socket_service.hpp 2007-10-29 09:07:08 EDT (Mon, 29 Oct 2007)
@@ -328,7 +328,7 @@
ec = boost::asio::error::bad_descriptor;
}
else if (FARPROC cancel_io_ex_ptr = ::GetProcAddress(
- ::GetModuleHandle("KERNEL32"), "CancelIoEx"))
+ ::GetModuleHandleA("KERNEL32"), "CancelIoEx"))
{
// The version of Windows supports cancellation from any thread.
typedef BOOL (WINAPI* cancel_io_ex_t)(HANDLE, LPOVERLAPPED);
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