Juan Lang : winhttp: Use the correct address length when connecting.

Alexandre Julliard julliard at winehq.org
Thu Jul 16 11:57:41 CDT 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Jul 15 13:03:19 2009 -0700

winhttp: Use the correct address length when connecting.

---

 dlls/winhttp/request.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index edb9143..5704417 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -920,7 +920,7 @@ static BOOL open_connection( request_t *request )
         heap_free( addressW );
         return FALSE;
     }
-    if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, sizeof(struct sockaddr_in) ))
+    if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, slen ))
     {
         netconn_close( &request->netconn );
         heap_free( addressW );




More information about the wine-cvs mailing list