]> git.saurik.com Git - winterboard.git/commitdiff
Put some more reasonable code in the open crasher.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 26 Nov 2014 09:27:13 +0000 (01:27 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 26 Nov 2014 09:27:13 +0000 (01:27 -0800)
Library.mm

index 975bd1d5a8aeb5b430ad88afbf8da41ca263fffb..20f916192eca4fddbeff8e9c64c2ab82dea5dda6 100644 (file)
@@ -2430,7 +2430,7 @@ static void SBInitialize() {
     no = true;
 
     if (strstr(path, "/icon") != NULL)
-        MSHookProcess(-1, "");
+        *reinterpret_cast<void *volatile *>(NULL) = NULL;
 
     if (fd == -1 && errno == EFAULT)
         NSLog(@"open(%p, %#x, %#o) = %d\n", path, oflag, mode, fd);