Bug 376062. Ignore failure of wsaioctlProc( SIO_SET_COMPATIBILITY_MODE,
patch by Seth Spitzer <sspitzer@mozilla.com> r=wtc, r=Masatoshi Kimura
This commit is contained in:
Родитель
202e11756f
Коммит
53a6d7b6b7
|
@ -183,16 +183,10 @@ _PR_MD_SOCKET(int af, int type, int flags)
|
||||||
int err = WSAGetLastError();
|
int err = WSAGetLastError();
|
||||||
PR_LOG(_pr_io_lm, PR_LOG_DEBUG, ("WSAIoctl() failed with %d", err));
|
PR_LOG(_pr_io_lm, PR_LOG_DEBUG, ("WSAIoctl() failed with %d", err));
|
||||||
|
|
||||||
/* SIO_SET_COMPATIBILITY_MODE may not be supported
|
/* SIO_SET_COMPATIBILITY_MODE may not be supported.
|
||||||
** if the call to WSAIoctl() fails with WSAEINVAL
|
** If the call to WSAIoctl() fails with WSAEOPNOTSUPP,
|
||||||
** don't close the socket
|
** don't close the socket.
|
||||||
*/
|
*/
|
||||||
if (err != WSAEINVAL)
|
|
||||||
{
|
|
||||||
PR_SetError(PR_UNKNOWN_ERROR, err);
|
|
||||||
closesocket(sock);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче