ws2_32: Fix an error return value in bind().
authorAlexandre Julliard <julliard@winehq.org>
Thu, 8 Jan 2009 16:29:27 +0000 (17:29 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 8 Jan 2009 16:29:31 +0000 (17:29 +0100)
dlls/ws2_32/socket.c

index 078c3bec6279fd5a78efc5b905bf3e0240e0ca33..cabe191bdde7bba704a7ba760256870a1baca3a4 100644 (file)
@@ -1429,7 +1429,7 @@ int WINAPI WS_bind(SOCKET s, const struct WS_sockaddr* name, int namelen)
                     {
                         release_sock_fd( s, fd );
                         SetLastError(WSAEAFNOSUPPORT);
-                        return INVALID_SOCKET;
+                        return SOCKET_ERROR;
                     }
                 }
 #endif