Commit d8dfce3e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Make getsockopt(SO_DEBUG) into a stub.

parent 75fe1064
......@@ -2103,7 +2103,6 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
/* Handle common cases. The special cases are below, sorted
* alphabetically */
case WS_SO_DEBUG:
case WS_SO_KEEPALIVE:
case WS_SO_OOBINLINE:
case WS_SO_RCVBUF:
......@@ -2168,6 +2167,13 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
csinfo->iProtocol = infow.iProtocol;
return 0;
}
case WS_SO_DEBUG:
WARN( "returning 0 for SO_DEBUG\n" );
*(DWORD *)optval = 0;
SetLastError( 0 );
return 0;
case WS_SO_DONTLINGER:
{
struct linger lingval;
......
......@@ -10991,7 +10991,7 @@ static void test_so_debug(void)
debug = 0xdeadbeef;
ret = getsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&debug, &len);
ok(!ret, "got %d\n", ret);
todo_wine ok(!WSAGetLastError(), "got error %u\n", WSAGetLastError());
ok(!WSAGetLastError(), "got error %u\n", WSAGetLastError());
ok(len == sizeof(debug), "got len %u\n", len);
ok(!debug, "got debug %u\n", debug);
......@@ -11006,7 +11006,7 @@ static void test_so_debug(void)
debug = 0xdeadbeef;
ret = getsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&debug, &len);
ok(!ret, "got %d\n", ret);
todo_wine ok(!WSAGetLastError(), "got error %u\n", WSAGetLastError());
ok(!WSAGetLastError(), "got error %u\n", WSAGetLastError());
ok(len == sizeof(debug), "got len %u\n", len);
todo_wine ok(debug == 1, "got debug %u\n", debug);
......
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