summaryrefslogtreecommitdiff
path: root/mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2010-08-03 20:55:29 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2010-08-03 20:55:29 +0000
commit5dd0796d286a6dc4a6959924fcc131477872187c (patch)
tree60e2c47be79a46ffe85e7a236d9adda348e134d2 /mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp
parent- Remove deskutils/lightning-xpi: Depends on obsolete Thunderbird 2. (diff)
- Update to 3.1.1
Thanks to: Andreas Tobler <andreast-list AT fgznet.ch>
Notes
Notes: svn path=/head/; revision=258727
Diffstat (limited to 'mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp')
-rw-r--r--mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp b/mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp
new file mode 100644
index 000000000000..a053edec7521
--- /dev/null
+++ b/mail/thunderbird-esr/files/patch-mozilla-xpcom-reflect-xptinfo-src-xptiInterfaceInfoManager.cpp
@@ -0,0 +1,23 @@
+--- mozilla/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp.orig
++++ mozilla/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp
+@@ -629,16 +629,17 @@ IndexOfDirectoryOfFile(nsISupportsArray* aSearchPath, nsILocalFile* aFile)
+ NS_ASSERTION(count, "broken search path! bad count");
+ for(PRUint32 i = 0; i < count; i++)
+ {
+- nsCOMPtr<nsIFile> current;
++ nsCOMPtr<nsIFile> current, normalized;
+ aSearchPath->QueryElementAt(i, NS_GET_IID(nsIFile),
+ getter_AddRefs(current));
+ NS_ASSERTION(current, "broken search path! bad element");
+ // nsIFile::Equals basically compares path strings so normalize
+ // before the comparison.
+ parent->Normalize();
+- current->Normalize();
++ current->Clone(getter_AddRefs(normalized));
++ normalized->Normalize();
+ PRBool same;
+- if (NS_SUCCEEDED(parent->Equals(current, &same)) && same)
++ if (NS_SUCCEEDED(parent->Equals(normalized, &same)) && same)
+ return (int) i;
+ }
+ }