From 08383255712ffeb0152e4455f33e1723f91a72c3 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 28 Dec 2009 20:01:47 +0000 Subject: [PATCH] Fix the ZodTTD/MacCiti Mac OS Roman Name: bug. --- Cydia.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cydia.mm b/Cydia.mm index a8ed4b73..d2d9d785 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)); -- 2.45.2