Ignore SOL_SOCKET/SO_DEBUG setsockopt() calls.
diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c
index 1b837a2..77471f3 100644
--- a/dlls/winsock/socket.c
+++ b/dlls/winsock/socket.c
@@ -2095,6 +2095,12 @@
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;