shdocvw: Try to guess scheme for IHTMLPrivateWindow navigation too.

This commit is contained in:
Jacek Caban 2010-06-28 12:52:03 +02:00 committed by Alexandre Julliard
parent 95a53a9ff6
commit d230fad0a8
1 changed files with 17 additions and 1 deletions

View File

@ -760,7 +760,23 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, const VARIANT *Flags,
This->ready_state = READYSTATE_LOADING; This->ready_state = READYSTATE_LOADING;
if(This->doc_navigate) { if(This->doc_navigate) {
hres = async_doc_navigate(This, url, headers, post_data, post_data_len, TRUE); WCHAR new_url[INTERNET_MAX_URL_LENGTH];
if(PathIsURLW(url)) {
new_url[0] = 0;
}else {
DWORD size;
size = sizeof(new_url)/sizeof(WCHAR);
hres = UrlApplySchemeW(url, new_url, &size, URL_APPLY_GUESSSCHEME);
if(FAILED(hres)) {
WARN("UrlApplyScheme failed: %08x\n", hres);
new_url[0] = 0;
}
}
hres = async_doc_navigate(This, *new_url ? new_url : url, headers, post_data,
post_data_len, TRUE);
}else { }else {
task_navigate_bsc_t *task; task_navigate_bsc_t *task;