Explicitly use WSASocketW, as WSASocketA has been deprecated.

This commit is contained in:
Christopher Kohlhoff 2014-10-02 17:24:03 +10:00
parent d25fa4e5dd
commit 63737cc784

View File

@ -1358,7 +1358,7 @@ socket_type socket(int af, int type, int protocol,
{
clear_last_error();
#if defined(ASIO_WINDOWS) || defined(__CYGWIN__)
socket_type s = error_wrapper(::WSASocket(af, type, protocol, 0, 0,
socket_type s = error_wrapper(::WSASocketW(af, type, protocol, 0, 0,
WSA_FLAG_OVERLAPPED), ec);
if (s == invalid_socket)
return s;