winhttp: Don't set port number to a default before scheme is known.

This commit is contained in:
Juan Lang 2009-07-14 13:04:42 -07:00 committed by Alexandre Julliard
parent 5c24a1c824
commit c2ba725196
1 changed files with 2 additions and 2 deletions

View File

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