Commit d0c3e19e authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

ioctlsocket() now returns success if the app sets nonblocking mode for

WSAAsyncSelect()-ed sockets.
parent 5d3cd529
......@@ -1202,6 +1202,10 @@ INT WINAPI WINSOCK_ioctlsocket(SOCKET s, LONG cmd, ULONG *argp)
if( _get_sock_mask(s) )
{
/* AsyncSelect()'ed sockets are always nonblocking */
if (*argp) {
close(fd);
return 0;
}
SetLastError(WSAEINVAL);
close(fd);
return SOCKET_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment