ws2_32: Implement SO_UPDATE_CONNECT_CONTEXT.
This commit is contained in:
parent
9ce376181a
commit
d596fa1859
@ -3507,7 +3507,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
|
|||||||
s, level, optname, optval, optlen);
|
s, level, optname, optval, optlen);
|
||||||
|
|
||||||
/* some broken apps pass the value directly instead of a pointer to it */
|
/* some broken apps pass the value directly instead of a pointer to it */
|
||||||
if(IS_INTRESOURCE(optval))
|
if(optlen && IS_INTRESOURCE(optval))
|
||||||
{
|
{
|
||||||
SetLastError(WSAEFAULT);
|
SetLastError(WSAEFAULT);
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
@ -3585,6 +3585,12 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
|
|||||||
TRACE("Ignoring SO_EXCLUSIVEADDRUSE, is always set.\n");
|
TRACE("Ignoring SO_EXCLUSIVEADDRUSE, is always set.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* After a ConnectEx call succeeds, the socket can't be used with half of the
|
||||||
|
* normal winsock functions on windows. We don't have that problem. */
|
||||||
|
case WS_SO_UPDATE_CONNECT_CONTEXT:
|
||||||
|
TRACE("Ignoring SO_UPDATE_CONNECT_CONTEXT, since our sockets are normal");
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* SO_OPENTYPE does not require a valid socket handle. */
|
/* SO_OPENTYPE does not require a valid socket handle. */
|
||||||
case WS_SO_OPENTYPE:
|
case WS_SO_OPENTYPE:
|
||||||
if (!optlen || optlen < sizeof(int) || !optval)
|
if (!optlen || optlen < sizeof(int) || !optval)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user