Browse Source

* correct INVALID_SOCKET to NOT 0, mantis #20946

git-svn-id: trunk@19883 -
marco 13 years ago
parent
commit
397a6059f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/win/winsock.pp

+ 1 - 1
rtl/win/winsock.pp

@@ -312,7 +312,7 @@ unit winsock;
        taken from the BSD file sys/socket.h.
     }
     const
-       INVALID_SOCKET = TSocket(not(1));
+       INVALID_SOCKET = TSocket(not(0));
        SOCKET_ERROR = -1;
        SOCK_STREAM = 1;
        SOCK_DGRAM = 2;