ws2_32: Return success for setting SO_ERROR.

This commit is contained in:
Paul Gofman 2022-11-14 16:00:50 -06:00 committed by Alexandre Julliard
parent a8c1d5c108
commit 5925a2eeb0
2 changed files with 3 additions and 4 deletions

View file

@ -3173,9 +3173,9 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
}
case SO_ERROR:
FIXME( "SO_ERROR, stub!\n" );
SetLastError( WSAENOPROTOOPT );
return -1;
FIXME( "SO_ERROR, stub.\n" );
SetLastError( ERROR_SUCCESS );
return 0;
case SO_KEEPALIVE:
if (optlen <= 0 || !optval)

View file

@ -1431,7 +1431,6 @@ static void test_set_getsockopt(void)
SetLastError(0xdeadbeef);
i = 1234;
err = setsockopt(s, SOL_SOCKET, SO_ERROR, (char *) &i, size);
todo_wine
ok( !err && !WSAGetLastError(),
"got %d with %d (expected 0 with 0)\n",
err, WSAGetLastError());