Commit 22783dfe authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

mshtml: Don't crash creating a URI if we have no document.

parent 24031fef
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment