소스 검색

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