mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
fix a winetest failure
svn path=/trunk/; revision=38470
This commit is contained in:
parent
2b9b7c7ab7
commit
8aaeedbb99
1 changed files with 6 additions and 0 deletions
|
@ -163,6 +163,12 @@ setsockopt(IN SOCKET s,
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(IS_INTRESOURCE(optval))
|
||||||
|
{
|
||||||
|
SetLastError(WSAEFAULT);
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ReferenceProviderByHandle((HANDLE)s, &Provider))
|
if (!ReferenceProviderByHandle((HANDLE)s, &Provider))
|
||||||
{
|
{
|
||||||
WSASetLastError(WSAENOTSOCK);
|
WSASetLastError(WSAENOTSOCK);
|
||||||
|
|
Loading…
Reference in a new issue