mshtml: Access document object via browser object in nsChannelBSC_init_bindinfo.

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:45 +01:00 committed by Alexandre Julliard
parent 70a964d4f9
commit 225b2f67b1
1 changed files with 3 additions and 3 deletions

View File

@ -1320,12 +1320,12 @@ static HRESULT nsChannelBSC_init_bindinfo(BSCallback *bsc)
{ {
nsChannelBSC *This = nsChannelBSC_from_BSCallback(bsc); nsChannelBSC *This = nsChannelBSC_from_BSCallback(bsc);
nsChannel *nschannel = This->nschannel; nsChannel *nschannel = This->nschannel;
HTMLDocumentObj *doc_obj; GeckoBrowser *browser;
HRESULT hres; HRESULT hres;
if(This->is_doc_channel && This->bsc.window && This->bsc.window->base.outer_window if(This->is_doc_channel && This->bsc.window && This->bsc.window->base.outer_window
&& (doc_obj = This->bsc.window->base.outer_window->doc_obj)) { && (browser = This->bsc.window->base.outer_window->browser)) {
if(doc_obj->hostinfo.dwFlags & DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION) if(browser->doc->hostinfo.dwFlags & DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION)
This->bsc.bindinfo_options |= BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS; This->bsc.bindinfo_options |= BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS;
} }