aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32.c b/win32.c
index 462e242..578a322 100644
--- a/win32.c
+++ b/win32.c
@@ -381,13 +381,13 @@ enet_socket_receive (ENetSocket socket,
{
case WSAEWOULDBLOCK:
case WSAECONNRESET:
- case WSAEINTR:
return 0;
+ case WSAEINTR:
case WSAEMSGSIZE:
return -2;
+ default:
+ return -1;
}
-
- return -1;
}
if (flags & MSG_PARTIAL)