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 ...@@ -3173,9 +3173,9 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
} }
case SO_ERROR: case SO_ERROR:
FIXME( "SO_ERROR, stub!\n" ); FIXME( "SO_ERROR, stub.\n" );
SetLastError( WSAENOPROTOOPT ); SetLastError( ERROR_SUCCESS );
return -1; return 0;
case SO_KEEPALIVE: case SO_KEEPALIVE:
if (optlen <= 0 || !optval) if (optlen <= 0 || !optval)
......
...@@ -1431,7 +1431,6 @@ static void test_set_getsockopt(void) ...@@ -1431,7 +1431,6 @@ static void test_set_getsockopt(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
i = 1234; i = 1234;
err = setsockopt(s, SOL_SOCKET, SO_ERROR, (char *) &i, size); err = setsockopt(s, SOL_SOCKET, SO_ERROR, (char *) &i, size);
todo_wine
ok( !err && !WSAGetLastError(), ok( !err && !WSAGetLastError(),
"got %d with %d (expected 0 with 0)\n", "got %d with %d (expected 0 with 0)\n",
err, WSAGetLastError()); 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