mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
Merge pull request #120 from Vincenz099/master
Return 0 instead of -1 on enet_protocol_receive_incoming_commands
This commit is contained in:
commit
bb14921419
2 changed files with 3 additions and 3 deletions
|
@ -1288,7 +1288,7 @@ enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event)
|
|||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
4
win32.c
4
win32.c
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue