summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-12-28 20:01:47 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:59 +0000
commit5358f56f41c94b3b6bce2ae8e3cc7b801b5b7b20 (patch)
treede2d3553063da8b445a73c810ef986cc1108b72f
parent78430d06eb6b1cd28fa8bcef3396f4973ba6d72c (diff)
Fix the ZodTTD/MacCiti Mac OS Roman Name: bug.
-rw-r--r--Cydia.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cydia.mm b/Cydia.mm
index a8ed4b7..d2d9d78 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -1932,6 +1932,11 @@ CFComparisonResult PackageNameCompare(Package *lhs, Package *rhs, void *arg) {
CYString &rhi(PackageName(rhs, @selector(cyname)));
CFStringRef lhn(lhi), rhn(rhi);
+ if (lhn == NULL)
+ return rhn == NULL ? NSOrderedSame : NSOrderedAscending;
+ else if (rhn == NULL)
+ return NSOrderedDescending;
+
_profile(PackageNameCompare$NumbersLast)
if (!lhi.empty() && !rhi.empty()) {
UniChar lhc(CFStringGetCharacterAtIndex(lhn, 0));