summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornelson%bolyard.com <devnull@localhost>2007-04-19 16:30:01 +0000
committernelson%bolyard.com <devnull@localhost>2007-04-19 16:30:01 +0000
commitde5cbf0f4c105452be13763f362c73740b15102c (patch)
tree0e085e601774534f4b9e1f7ce95d3326cc9a1fa1
parenta1fb73d9542d44976c051346f4b6c414413fe738 (diff)
downloadnspr-hg-de5cbf0f4c105452be13763f362c73740b15102c.tar.gz
Bug 376062. Ignore failure of wsaioctlProc( SIO_SET_COMPATIBILITY_MODE,
patch by Seth Spitzer <sspitzer@mozilla.com> r=wtc, r=Masatoshi Kimura
-rw-r--r--pr/src/md/windows/w95sock.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/pr/src/md/windows/w95sock.c b/pr/src/md/windows/w95sock.c
index 4c6b3577..fa5cd0d2 100644
--- a/pr/src/md/windows/w95sock.c
+++ b/pr/src/md/windows/w95sock.c
@@ -183,16 +183,10 @@ _PR_MD_SOCKET(int af, int type, int flags)
int err = WSAGetLastError();
PR_LOG(_pr_io_lm, PR_LOG_DEBUG, ("WSAIoctl() failed with %d", err));
- /* SIO_SET_COMPATIBILITY_MODE may not be supported
- ** if the call to WSAIoctl() fails with WSAEINVAL
- ** don't close the socket
+ /* SIO_SET_COMPATIBILITY_MODE may not be supported.
+ ** If the call to WSAIoctl() fails with WSAEOPNOTSUPP,
+ ** don't close the socket.
*/
- if (err != WSAEINVAL)
- {
- PR_SetError(PR_UNKNOWN_ERROR, err);
- closesocket(sock);
- return -1;
- }
}
}