Commit 95d98bdb authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't crash in on_start_uri_open on nscontainer without associated document.

parent e4bfae83
......@@ -222,12 +222,14 @@ nsresult on_start_uri_open(NSContainer *nscontainer, nsIURI *uri, PRBool *_retva
}
if(!wine_uri->is_doc_uri) {
wine_uri->is_doc_uri = TRUE;
if(!wine_uri->container) {
nsIWebBrowserChrome_AddRef(NSWBCHROME(nscontainer));
wine_uri->container = nscontainer;
}
wine_uri->is_doc_uri = TRUE;
if(nscontainer->doc)
*_retval = translate_url(nscontainer->doc, wine_uri);
}
......
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