shdocvw: Apply default scheme when none is present.

This commit is contained in:
Juan Lang 2010-08-19 12:08:12 -07:00 committed by Alexandre Julliard
parent 9713d62e89
commit 158f5be804
1 changed files with 2 additions and 1 deletions

View File

@ -783,7 +783,8 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, const VARIANT *Flags,
DWORD size; DWORD size;
size = sizeof(new_url)/sizeof(WCHAR); size = sizeof(new_url)/sizeof(WCHAR);
hres = UrlApplySchemeW(url, new_url, &size, URL_APPLY_GUESSSCHEME); hres = UrlApplySchemeW(url, new_url, &size,
URL_APPLY_GUESSSCHEME | URL_APPLY_DEFAULT);
if(FAILED(hres)) { if(FAILED(hres)) {
WARN("UrlApplyScheme failed: %08x\n", hres); WARN("UrlApplyScheme failed: %08x\n", hres);
new_url[0] = 0; new_url[0] = 0;