소스 검색

Merge pull request #10 from Vincenz099/master

Fixed WSASend returning 1 instead of -1 on error.
Vladyslav Hrytsenko 5 년 전
부모
커밋
86cbf12026
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/enet.h

+ 1 - 1
include/enet.h

@@ -5740,7 +5740,7 @@ extern "C" {
             NULL,
             NULL) == SOCKET_ERROR
         ) {
-            return (WSAGetLastError() == WSAEWOULDBLOCK) ? 0 : 1;
+            return (WSAGetLastError() == WSAEWOULDBLOCK) ? 0 : -1;
         }
 
         return (int) sentLength;