Merge remote-tracking branch 'upstream/master' into moonlight

This commit is contained in:
Cameron Gutman
2023-07-25 21:54:18 -05:00
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -1242,6 +1242,9 @@ enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event)
& buffer,
1);
if (receivedLength == -2)
continue;
if (receivedLength < 0)
return -1;
+1 -1
View File
@@ -663,7 +663,7 @@ enet_socket_receive (ENetSocket socket,
#ifdef HAS_MSGHDR_FLAGS
if (msgHdr.msg_flags & MSG_TRUNC)
return -1;
return -2;
#endif
// Retrieve the local address that this traffic was received on
+3 -1
View File
@@ -534,13 +534,15 @@ enet_socket_receive (ENetSocket socket,
case WSAEWOULDBLOCK:
case WSAECONNRESET:
return 0;
case WSAEMSGSIZE:
return -2;
}
return -1;
}
if (msg.dwFlags & MSG_PARTIAL)
return -1;
return -2;
// Retrieve the local address that this traffic was received on
// to ensure we respond from the correct address/interface.