winhttp: Use the correct address length when connecting

Juan Lang juan.lang at gmail.com
Wed Jul 15 15:29:23 CDT 2009


--Juan
-------------- next part --------------
From b5797073b19351e82242e545857da67ac1f47275 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Wed, 15 Jul 2009 13:03:19 -0700
Subject: [PATCH 2/2] 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 );
-- 
1.6.3.2


More information about the wine-patches mailing list