server: Return a WSA error code in WS_SIO_ADDRESS_LIST_CHANGE.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
424a379f64
commit
49babc0bad
@ -547,7 +547,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
|
|||||||
case WS_SIO_ADDRESS_LIST_CHANGE:
|
case WS_SIO_ADDRESS_LIST_CHANGE:
|
||||||
if ((sock->state & FD_WINE_NONBLOCKING) && async_is_blocking( async ))
|
if ((sock->state & FD_WINE_NONBLOCKING) && async_is_blocking( async ))
|
||||||
{
|
{
|
||||||
set_error( STATUS_CANT_WAIT );
|
set_win32_error( WSAEWOULDBLOCK );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!sock_get_ifchange( sock )) return 0;
|
if (!sock_get_ifchange( sock )) return 0;
|
||||||
@ -1097,7 +1097,7 @@ static void ifchange_poll_event( struct fd *fd, int event )
|
|||||||
unix_fd = socket( PF_NETLINK, SOCK_RAW, NETLINK_ROUTE );
|
unix_fd = socket( PF_NETLINK, SOCK_RAW, NETLINK_ROUTE );
|
||||||
if (unix_fd == -1)
|
if (unix_fd == -1)
|
||||||
{
|
{
|
||||||
sock_set_error();
|
set_win32_error( sock_get_error( errno ));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
fcntl( unix_fd, F_SETFL, O_NONBLOCK ); /* make socket nonblocking */
|
fcntl( unix_fd, F_SETFL, O_NONBLOCK ); /* make socket nonblocking */
|
||||||
@ -1108,7 +1108,7 @@ static void ifchange_poll_event( struct fd *fd, int event )
|
|||||||
if (bind( unix_fd, (struct sockaddr *)&addr, sizeof(addr) ) == -1)
|
if (bind( unix_fd, (struct sockaddr *)&addr, sizeof(addr) ) == -1)
|
||||||
{
|
{
|
||||||
close( unix_fd );
|
close( unix_fd );
|
||||||
sock_set_error();
|
set_win32_error( sock_get_error( errno ));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!(ifchange = alloc_object( &ifchange_ops )))
|
if (!(ifchange = alloc_object( &ifchange_ops )))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user