From c2ba725196aa2f5ce93761d0602adeadb28407c5 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 14 Jul 2009 13:04:42 -0700 Subject: [PATCH] winhttp: Don't set port number to a default before scheme is known. --- dlls/winhttp/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c index b09e887e856..fab6c96d6d2 100644 --- a/dlls/winhttp/session.c +++ b/dlls/winhttp/session.c @@ -343,7 +343,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT if (*(colon + 1)) connect->serverport = atoiW( colon + 1 ); else - connect->serverport = INTERNET_DEFAULT_HTTP_PORT; + connect->serverport = INTERNET_DEFAULT_PORT; } } else @@ -357,7 +357,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT ret = FALSE; goto end; } - connect->serverport = INTERNET_DEFAULT_HTTP_PORT; + connect->serverport = INTERNET_DEFAULT_PORT; } } }