winhttp: Connect to the proxy port rather than the host port.

This commit is contained in:
Juan Lang 2009-07-14 13:03:10 -07:00 committed by Alexandre Julliard
parent 6fad52bd14
commit 85579ebb4c
1 changed files with 1 additions and 1 deletions

View File

@ -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 );