mshtml: Avoid crash in nsIURI:Equals if other_url is NULL.

This commit is contained in:
Jacek Caban 2009-10-27 21:10:22 +01:00 committed by Alexandre Julliard
parent 361f9a30ba
commit faf0b6bb2a
1 changed files with 1 additions and 1 deletions

View File

@ -1754,7 +1754,7 @@ static nsresult NSAPI nsURI_Equals(nsIWineURI *iface, nsIURI *other, PRBool *_re
}
nsIWineURI_GetWineURL(wine_uri, &other_url);
*_retval = !UrlCompareW(This->wine_url, other_url, TRUE);
*_retval = other_url && !UrlCompareW(This->wine_url, other_url, TRUE);
nsIWineURI_Release(wine_uri);
return NS_OK;