2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-27 06:32:08 +00:00

Explicitly use WSASocketW, as WSASocketA has been deprecated.

Fixes boost trac ticket #10534.
This commit is contained in:
Christopher Kohlhoff
2014-10-16 19:06:56 +11:00
parent 2c24ee7dd0
commit 504ff0474e

View File

@@ -1359,7 +1359,7 @@ socket_type socket(int af, int type, int protocol,
{
clear_last_error();
#if defined(BOOST_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;