Jacek Caban : mshtml: Check if BSC is still attached to window before using it in OnRedirectVerifyCallback.
Module: wine Branch: master Commit: cfb67712ce35c05d6b7d27ece84c9192e66290b4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=cfb67712ce35c05d6b7d27ece... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Mar 20 22:39:01 2018 +0100 mshtml: Check if BSC is still attached to window before using it in OnRedirectVerifyCallback. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mshtml/navigate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index 9d6076d..cd18287 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -1231,7 +1231,7 @@ static nsresult NSAPI nsAsyncVerifyRedirectCallback_OnRedirectVerifyCallback(nsI ERR("AddRequest failed: %08x\n", nsres); } - if(This->bsc->is_doc_channel) { + if(This->bsc->is_doc_channel && This->bsc->bsc.window && This->bsc->bsc.window->base.outer_window) { IUri *uri = nsuri_get_uri(This->nschannel->uri); if(uri) {
participants (1)
-
Alexandre Julliard