Explicitly use WSASocketW, as WSASocketA has been deprecated.
This commit is contained in:
parent
d25fa4e5dd
commit
63737cc784
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user