Преглед изворни кода

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;
 }