Sebastian Lackner : ws2_32: Add a missing call to release_sock_fd.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 14 08:31:57 CDT 2015


Module: wine
Branch: master
Commit: ea371a2446eb6befa2954fe5a6428da0e562aa6b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ea371a2446eb6befa2954fe5a6428da0e562aa6b

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Tue Apr 14 07:37:50 2015 +0200

ws2_32: Add a missing call to release_sock_fd.

---

 dlls/ws2_32/socket.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 2fd2ce1..95ea83c 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3091,6 +3091,7 @@ static BOOL WINAPI WS2_ConnectEx(SOCKET s, const struct WS_sockaddr* name, int n
     if (ret <= 0)
     {
         SetLastError(ret == -1 ? wsaErrno() : WSAEINVAL);
+        release_sock_fd( s, fd );
         return FALSE;
     }
 




More information about the wine-cvs mailing list