shdocvw: Apply default scheme when none is present.
This commit is contained in:
parent
9713d62e89
commit
158f5be804
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue