ws2_32: Set WSAEINVAL on invalid levels in set+getsockopt.
This commit is contained in:
parent
3e87a05476
commit
3d326eb5a8
|
@ -2126,7 +2126,8 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
FIXME("Unknown level: 0x%08x\n", level);
|
WARN("Unknown level: 0x%08x\n", level);
|
||||||
|
SetLastError(WSAEINVAL);
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
} /* end switch(level) */
|
} /* end switch(level) */
|
||||||
}
|
}
|
||||||
|
@ -3277,7 +3278,8 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
FIXME("Unknown level: 0x%08x\n", level);
|
WARN("Unknown level: 0x%08x\n", level);
|
||||||
|
SetLastError(WSAEINVAL);
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
} /* end switch(level) */
|
} /* end switch(level) */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue