mshtml: Access document object via browser object in IHTMLPrivateWindow implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-03-14 14:13:18 +01:00 committed by Alexandre Julliard
parent 1a85cb9368
commit 23b8df55f6
1 changed files with 5 additions and 2 deletions

View File

@ -2686,8 +2686,11 @@ static HRESULT WINAPI HTMLPrivateWindow_SuperNavigate(IHTMLPrivateWindow *iface,
TRACE("(%p)->(%s %s %s %s %s %s %x)\n", This, debugstr_w(url), debugstr_w(arg2), debugstr_w(arg3), debugstr_w(arg4),
debugstr_variant(post_data_var), debugstr_variant(headers_var), flags);
if(window->doc_obj->hostui) {
hres = IDocHostUIHandler_TranslateUrl(window->doc_obj->hostui, 0, url, &translated_url);
if(!window || !window->browser)
return E_UNEXPECTED;
if(window->browser->doc->hostui) {
hres = IDocHostUIHandler_TranslateUrl(window->browser->doc->hostui, 0, url, &translated_url);
if(hres != S_OK)
translated_url = NULL;
}