From bc23f9bd85d1376bfe58d7a910f9e45bdddd99d8 Mon Sep 17 00:00:00 2001 From: "jefft%netscape.com" Date: Wed, 24 Mar 1999 01:55:42 +0000 Subject: [PATCH] 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 --- mozilla/mailnews/imap/src/nsImapUrl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/imap/src/nsImapUrl.cpp b/mozilla/mailnews/imap/src/nsImapUrl.cpp index 31d3bc2ebcb..ff602ecae52 100644 --- a/mozilla/mailnews/imap/src/nsImapUrl.cpp +++ b/mozilla/mailnews/imap/src/nsImapUrl.cpp @@ -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; }