]> git.saurik.com Git - winterboard.git/commitdiff
On iOS 9 sometimes they do not bother using names. master v0.9.3919
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 31 Oct 2015 07:20:01 +0000 (00:20 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 31 Oct 2015 07:20:01 +0000 (00:20 -0700)
Library.mm

index 4287c06eaec9d5b9ddf960a735bbb4061592ec79..037c3e0548a5158e784eacbf272be3f819b9e1e9 100644 (file)
@@ -2304,7 +2304,7 @@ MSHook(NSArray *, CPBitmapCreateImagesFromPath, NSString *path, CFTypeRef *names
     NSArray *images(_CPBitmapCreateImagesFromPath(path, names, arg2, arg3));
     if (images == nil)
         return nil;
-    if (*names == nil)
+    if (names == NULL || *names == nil)
         return images;
 
     NSBundle *bundle([NSBundle wb$bundleWithFile:path]);