Fixes a test failure on test-linux-32: https://gitlab.winehq.org/rhabacker/wine/-/jobs/147513#L4259
From: Vibhav Pant vibhavp@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 ));