mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Treat WSAEINVAL similar to WSAEALREADY during connect for backward-compatibility to Winsock 1.1, but might confuses with an actual invalid argument error on newer Winsock.
This commit is contained in:
1 parent
564c4b38bd
commit
47efec2782
1 file changed
+1
-1
+1
-1
@@ -84,7 +84,7 @@
|
||||
#define EALREADY WSAEALREADY
|
||||
#define ETIMEDOUT WSAETIMEDOUT
|
||||
#define EOPNOTSUPP WSAEOPNOTSUPP
|
||||
inline bool connectInProgress(int errcode){ return (errcode == WSAEWOULDBLOCK || errcode == WSAEINPROGRESS || errcode == WSAEALREADY); }
|
||||
inline bool connectInProgress(int errcode){ return (errcode == WSAEWOULDBLOCK || errcode == WSAEINPROGRESS || errcode == WSAEALREADY || errcode == WSAEINVAL); } // WSAEINVAL should be treated as WSAEALREADY during connect for backward-compatibility with Winsock 1.1
|
||||
inline bool isDisconnected(int errcode) { return (errcode == WSAECONNRESET || errcode == WSAECONNABORTED || errcode == WSAESHUTDOWN); }
|
||||
#else
|
||||
#define INVALID_SOCKET -1
|
||||
|
||||
Reference in new issue
Block a user