Commit 09e29486 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ws2_32: Implemented SO_CONNECT_TIME stub.

parent e5cc92f3
......@@ -2536,6 +2536,20 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return ret;
}
case WS_SO_CONNECT_TIME:
{
static int pretendtime = 0;
if (!pretendtime) FIXME("WS_SO_CONNECT_TIME - faking results\n");
if (!optlen || *optlen < sizeof(DWORD) || !optval)
{
SetLastError(WSAEFAULT);
return SOCKET_ERROR;
}
*(DWORD*)optval = pretendtime++;
*optlen = sizeof(DWORD);
return ret;
}
/* As mentioned in setsockopt, Windows ignores this, so we
* always return true here */
case WS_SO_DONTROUTE:
......
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