From: Jay Freeman (saurik) Date: Mon, 28 Dec 2009 20:01:47 +0000 (+0000) Subject: Fix the ZodTTD/MacCiti Mac OS Roman Name: bug. X-Git-Tag: v1.0.3366~216 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/5358f56f41c94b3b6bce2ae8e3cc7b801b5b7b20 Fix the ZodTTD/MacCiti Mac OS Roman Name: bug. --- 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));