mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:37:17 +00:00
ioctlsocket() now returns success if the app sets nonblocking mode for
WSAAsyncSelect()-ed sockets.
This commit is contained in:
parent
5d3cd5296f
commit
d0c3e19e8a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue