Skip to content

Commit 63737cc

Browse files
committed
Explicitly use WSASocketW, as WSASocketA has been deprecated.
1 parent d25fa4e commit 63737cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asio/include/asio/detail/impl/socket_ops.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ socket_type socket(int af, int type, int protocol,
13581358
{
13591359
clear_last_error();
13601360
#if defined(ASIO_WINDOWS) || defined(__CYGWIN__)
1361-
socket_type s = error_wrapper(::WSASocket(af, type, protocol, 0, 0,
1361+
socket_type s = error_wrapper(::WSASocketW(af, type, protocol, 0, 0,
13621362
WSA_FLAG_OVERLAPPED), ec);
13631363
if (s == invalid_socket)
13641364
return s;

0 commit comments

Comments
 (0)