ws2_32: Fix an error return value in bind().

This commit is contained in:
Alexandre Julliard 2009-01-08 17:29:27 +01:00
parent f45874ae28
commit a46441bd02
1 changed files with 1 additions and 1 deletions

View 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