mshtml: Don't crash in on_start_uri_open on nscontainer without associated document.
This commit is contained in:
parent
e4bfae8306
commit
95d98bdb53
|
@ -222,13 +222,15 @@ nsresult on_start_uri_open(NSContainer *nscontainer, nsIURI *uri, PRBool *_retva
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!wine_uri->is_doc_uri) {
|
if(!wine_uri->is_doc_uri) {
|
||||||
|
wine_uri->is_doc_uri = TRUE;
|
||||||
|
|
||||||
if(!wine_uri->container) {
|
if(!wine_uri->container) {
|
||||||
nsIWebBrowserChrome_AddRef(NSWBCHROME(nscontainer));
|
nsIWebBrowserChrome_AddRef(NSWBCHROME(nscontainer));
|
||||||
wine_uri->container = nscontainer;
|
wine_uri->container = nscontainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
wine_uri->is_doc_uri = TRUE;
|
if(nscontainer->doc)
|
||||||
*_retval = translate_url(nscontainer->doc, wine_uri);
|
*_retval = translate_url(nscontainer->doc, wine_uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsIURI_Release(NSURI(wine_uri));
|
nsIURI_Release(NSURI(wine_uri));
|
||||||
|
|
Loading…
Reference in New Issue