Module: wine Branch: master Commit: a46441bd02e354a070fb43f5f5855c23110559b7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a46441bd02e354a070fb43f5f5...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jan 8 17:29:27 2009 +0100
ws2_32: Fix an error return value in bind().
---
dlls/ws2_32/socket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 078c3be..cabe191 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -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