]> git.saurik.com Git - cycript.git/blobdiff - Trampoline.t.cpp
Use ffi_closure_alloc and ffi_prep_closure_loc on ARM.
[cycript.git] / Trampoline.t.cpp
index 1d7cf95d21338857c28e30e7f11479803e67cdf2..267a25353dd42f64a0ed23e647c2a1cf2960081a 100644 (file)
@@ -66,10 +66,12 @@ void *Routine(void *arg) {
 
     void (*CYHandleServer)(pid_t);
     dlset(baton, CYHandleServer, "CYHandleServer", handle);
+    if (CYHandleServer == NULL) {
+        baton->dlerror();
+        return NULL;
+    }
 
-    if (CYHandleServer != NULL)
-        CYHandleServer(baton->pid);
-
+    CYHandleServer(baton->pid);
     return NULL;
 }