temporary fix prevent from crashing if someone call nsImapUrl::Equals
git-svn-id: svn://10.0.0.236/trunk@24943 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -434,11 +434,14 @@ PRBool nsImapUrl::Equals(const nsIURL* aURL) const
|
||||
nsImapUrl* other;
|
||||
NS_LOCK_INSTANCE();
|
||||
// are they both imap urls?? if yes...for now just compare the pointers until
|
||||
// I figure out if we need to check any of the guts for equality....
|
||||
// I figure out if we need to check any of the guts for
|
||||
/*
|
||||
if (((nsIURL*)aURL)->QueryInterface(nsIImapUrl::GetIID(), (void**)&other) == NS_OK)
|
||||
bIsEqual = other == this; // compare the pointers...
|
||||
else
|
||||
bIsEqual = PR_FALSE;
|
||||
*/
|
||||
bIsEqual = (PRBool) (((void*) aURL) == ((void*) this));
|
||||
NS_UNLOCK_INSTANCE();
|
||||
return bIsEqual;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user