فهرست منبع

Fixed wrong return value with socket_send (#605)

Maurice Doison 2 سال پیش
والد
کامیت
4cda53f336
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/std/socket.c

+ 1 - 1
src/std/socket.c

@@ -156,7 +156,7 @@ HL_PRIM int hl_socket_send( hl_socket *s, vbyte *buf, int pos, int len ) {
 	r = send(s->sock, (char*)buf + pos, len, MSG_NOSIGNAL);
 	if( r == SOCKET_ERROR )
 		return block_error();
-	return len;
+	return r;
 }