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:
jefft%netscape.com
1999-03-24 01:55:42 +00:00
parent 116dc774fd
commit bc23f9bd85

View File

@@ -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;
}