winhttp(7/12): Connect to the proxy port rather than the host port

Juan Lang juan.lang at gmail.com
Mon Jul 13 15:10:51 CDT 2009


I suppose I should say, when a proxy is configured...
--Juan
-------------- next part --------------
From bf76688a299cead7b51dc9f184cd62922cceb4b0 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Fri, 10 Jul 2009 17:38:59 -0700
Subject: [PATCH 07/12] Connect to the proxy port rather than the host port

---
 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 a0a7a4c..37dd556 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -768,7 +768,7 @@ static BOOL open_connection( request_t *request )
     if (netconn_connected( &request->netconn )) return TRUE;
 
     connect = request->connect;
-    port = connect->hostport ? connect->hostport : (request->hdr.flags & WINHTTP_FLAG_SECURE ? 443 : 80);
+    port = connect->serverport ? connect->serverport : (request->hdr.flags & WINHTTP_FLAG_SECURE ? 443 : 80);
 
     send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_RESOLVING_NAME, connect->servername, strlenW(connect->servername) + 1 );
 
-- 
1.6.3.2


More information about the wine-patches mailing list