mshtml: Don't crash creating a URI if we have no document.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
24031fef65
commit
22783dfef8
@ -3463,7 +3463,8 @@ HRESULT create_doc_uri(HTMLOuterWindow *window, IUri *iuri, nsWineURI **ret)
|
||||
nsWineURI *uri;
|
||||
nsresult nsres;
|
||||
|
||||
nsres = create_nsuri(iuri, window, window->doc_obj->nscontainer, NULL, &uri);
|
||||
nsres = create_nsuri(iuri, window, window->doc_obj ? window->doc_obj->nscontainer : NULL,
|
||||
NULL, &uri);
|
||||
if(NS_FAILED(nsres))
|
||||
return E_FAIL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user