Commit c2ba7251 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent 5c24a1c8
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment