diff options
author | Lee Salzman <[email protected]> | 2020-04-07 13:37:56 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-07 13:37:56 -0400 |
commit | bb1492141950ea4fd95b0a810054f6207e90e6c8 (patch) | |
tree | 80767470cc5502bfc680cbcf86ce6990ff2c8e17 | |
parent | 6991632abf1af161f332bf38bd8517c7c2834b58 (diff) | |
parent | 67cee4803a3338f0ee2e049ceac215925b9cd908 (diff) | |
download | enet-bb1492141950ea4fd95b0a810054f6207e90e6c8.tar.gz enet-bb1492141950ea4fd95b0a810054f6207e90e6c8.zip |
Merge pull request #120 from Vincenz099/master
Return 0 instead of -1 on enet_protocol_receive_incoming_commands
-rw-r--r-- | protocol.c | 2 | ||||
-rw-r--r-- | win32.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1288,7 +1288,7 @@ enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event) } } - return -1; + return 0; } static void @@ -316,7 +316,7 @@ enet_socket_send (ENetSocket socket, size_t bufferCount) { struct sockaddr_in sin; - DWORD sentLength; + DWORD sentLength = 0; if (address != NULL) { @@ -354,7 +354,7 @@ enet_socket_receive (ENetSocket socket, { INT sinLength = sizeof (struct sockaddr_in); DWORD flags = 0, - recvLength; + recvLength = 0; struct sockaddr_in sin; if (WSARecvFrom (socket, |