Commit 5925a2ee authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ws2_32: Return success for setting SO_ERROR.

parent a8c1d5c1
......@@ -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)
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment