diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-12-28 20:01:47 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:59 +0000 |
commit | 5358f56f41c94b3b6bce2ae8e3cc7b801b5b7b20 (patch) | |
tree | de2d3553063da8b445a73c810ef986cc1108b72f | |
parent | 78430d06eb6b1cd28fa8bcef3396f4973ba6d72c (diff) |
Fix the ZodTTD/MacCiti Mac OS Roman Name: bug.
-rw-r--r-- | Cydia.mm | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)); |