mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:17:14 +00:00
ws2_32: Return success for setting SO_ERROR.
This commit is contained in:
parent
a8c1d5c108
commit
5925a2eeb0
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue