Commit 3d326eb5 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

ws2_32: Set WSAEINVAL on invalid levels in set+getsockopt.

parent 3e87a054
......@@ -2126,7 +2126,8 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return SOCKET_ERROR;
default:
FIXME("Unknown level: 0x%08x\n", level);
WARN("Unknown level: 0x%08x\n", level);
SetLastError(WSAEINVAL);
return SOCKET_ERROR;
} /* end switch(level) */
}
......@@ -3277,7 +3278,8 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
break;
default:
FIXME("Unknown level: 0x%08x\n", level);
WARN("Unknown level: 0x%08x\n", level);
SetLastError(WSAEINVAL);
return SOCKET_ERROR;
} /* end switch(level) */
......
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