diff --git a/xpfe/components/search/src/nsInternetSearchService.cpp b/xpfe/components/search/src/nsInternetSearchService.cpp index 8712760d695..a40292209a8 100755 --- a/xpfe/components/search/src/nsInternetSearchService.cpp +++ b/xpfe/components/search/src/nsInternetSearchService.cpp @@ -1463,7 +1463,7 @@ InternetSearchDataSource::filterSite(nsIRDFResource *aResource) aRes = do_QueryInterface(isupports); if (!aRes) return(NS_ERROR_UNEXPECTED); - if ((aRes == kNC_LastSearchRoot) || (isSearchURI(aRes))) + if ((aRes.get() == kNC_LastSearchRoot) || (isSearchURI(aRes))) { array->AppendElement(aRes); }