[PATCH 0/1] MR7687: server: Use WSAEAFNOSUPPORT as the win32 error on EPROTONOSUPPORT for AF_BLUETOOTH sockets.
Fixes a test failure on test-linux-32: https://gitlab.winehq.org/rhabacker/wine/-/jobs/147513#L4259 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7687
From: Vibhav Pant <vibhavp(a)gmail.com> --- server/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sock.c b/server/sock.c index e064f867ff4..b6c64110003 100644 --- a/server/sock.c +++ b/server/sock.c @@ -1967,7 +1967,7 @@ static int init_socket( struct sock *sock, int family, int type, int protocol ) { if (errno == EINVAL) set_win32_error( WSAESOCKTNOSUPPORT ); #ifdef AF_BLUETOOTH - else if (errno == ESOCKTNOSUPPORT && unix_family == AF_BLUETOOTH) + else if (unix_family == AF_BLUETOOTH && (errno == ESOCKTNOSUPPORT || errno == EPROTONOSUPPORT)) set_win32_error( WSAEAFNOSUPPORT ); #endif else set_win32_error( sock_get_error( errno )); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7687
participants (2)
-
Vibhav Pant -
Vibhav Pant (@vibhavp)