server: Always return Win32 error code from IOCTL_AFD_GET_SO_ERROR.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
This commit is contained in:
Piotr Caban 2022-06-10 17:05:37 +02:00 committed by Alexandre Julliard
parent ecc607c6da
commit 9d1085c8d3

View file

@ -2804,12 +2804,13 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
{
if (sock->errors[i])
{
error = sock_get_error( sock->errors[i] );
error = sock->errors[i];
break;
}
}
}
error = sock_get_error( error );
set_reply_data( &error, sizeof(error) );
return;
}