From 3c379ddc6b4e3d8f4615de70871508775227f36e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 26 Nov 2000 22:36:38 +0000 Subject: [PATCH] Ignore SOL_SOCKET/SO_DEBUG setsockopt() calls. --- dlls/winsock/socket.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 1b837a242f9..77471f3138f 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -2095,6 +2095,12 @@ INT WINAPI WSOCK32_setsockopt(SOCKET16 s, INT level, INT optname, int fd = _get_sock_fd(s); int woptval; + /* Is a privileged and useless operation, so we don't. */ + if ((optname == WS_SO_DEBUG) && (level == WS_SOL_SOCKET)) { + FIXME("(%d,SOL_SOCKET,SO_DEBUG,%p(%ld)) attempted (is privileged). Ignoring.\n",s,optval,*(DWORD*)optval); + return 0; + } + if(optname == WS_SO_DONTLINGER && level == WS_SOL_SOCKET) { /* This is unique to WinSock and takes special conversion */ linger.l_onoff = *((int*)optval) ? 0: 1;