winhttp(8/13): Connect to the proxy port rather than the host port

Juan Lang juan.lang at gmail.com
Tue Jul 14 15:23:24 CDT 2009


--Juan
-------------- next part --------------
From bcbc6e42d494a1725e35d8e6457915a7b9ee63b6 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Tue, 14 Jul 2009 13:03:10 -0700
Subject: [PATCH 08/13] 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