More work on winsock stack (ping is now working)
[reactos.git] / reactos / lib / ws2_32 / misc / sndrcv.c
index 8b4a30d..2e8871e 100644 (file)
@@ -43,7 +43,9 @@ recvfrom(
     WSABuf.len = len;
     WSABuf.buf = (CHAR FAR*)buf;
 
     WSABuf.len = len;
     WSABuf.buf = (CHAR FAR*)buf;
 
-    return WSARecvFrom(s, &WSABuf, 1, &BytesReceived, (LPDWORD)&flags, from, fromlen, NULL, NULL);
+    WSARecvFrom(s, &WSABuf, 1, &BytesReceived, (LPDWORD)&flags, from, fromlen, NULL, NULL);
+
+    return BytesReceived;
 }
 
 
 }