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

WSAAsyncSelect()-ed sockets.
oldstable
Ove Kaaven 2000-02-14 19:50:57 +00:00 committed by Alexandre Julliard
parent 5d3cd5296f
commit d0c3e19e8a
1 changed files with 4 additions and 0 deletions

View File

@ -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;