[MSAFD] Make WSPSetSockOpt() SO_RCVBUF stub return success

This commit is contained in:
Pierre Schweitzer 2019-02-24 21:25:39 +01:00
parent 81727760e4
commit f6c50cb93d
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -2870,6 +2870,17 @@ WSPSetSockOpt(
ERR("Setting send buf to %x is not implemented yet\n", optval);
return NO_ERROR;
case SO_RCVBUF:
if (optlen < sizeof(DWORD))
{
if (lpErrno) *lpErrno = WSAEFAULT;
return SOCKET_ERROR;
}
/* TODO: The total per-socket buffer space reserved for receives */
ERR("Setting receive buf to %x is not implemented yet\n", optval);
return NO_ERROR;
case SO_ERROR:
if (optlen < sizeof(INT))
{