Jacek Caban : mshtml: Avoid crash in nsIURI:Equals if other_url is NULL.
Alexandre Julliard
julliard at winehq.org
Wed Oct 28 10:12:24 CDT 2009
Module: wine
Branch: master
Commit: faf0b6bb2ae6de9796d3be58bcf4ca0c82d120b9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=faf0b6bb2ae6de9796d3be58bcf4ca0c82d120b9
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Oct 27 21:10:22 2009 +0100
mshtml: Avoid crash in nsIURI:Equals if other_url is NULL.
---
dlls/mshtml/nsio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 94004ab..b36f3fc 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -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;
More information about the wine-cvs
mailing list