]> git.saurik.com Git - cycript.git/blobdiff - Mach/Inject.cpp
Port build environment to automake (break -arch).
[cycript.git] / Mach / Inject.cpp
index 3f91398a899ee4ac4ae2de89f135a01986a70c26..1df9be388b12d5a4012944433579ef9ae05b9acc 100644 (file)
@@ -1,5 +1,5 @@
 /* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2010  Jay Freeman (saurik)
+ * Copyright (C) 2009-2012  Jay Freeman (saurik)
 */
 
 /* GNU Lesser General Public License, Version 3 {{{ */
@@ -47,9 +47,7 @@ void InjectLibrary(pid_t pid) {
     Baton *baton(reinterpret_cast<Baton *>(local));
 
     baton->__pthread_set_self = &__pthread_set_self;
-
     baton->pthread_create = &pthread_create;
-    baton->pthread_join = &pthread_join;
 
     baton->mach_thread_self = &mach_thread_self;
     baton->thread_terminate = &thread_terminate;
@@ -120,7 +118,7 @@ void InjectLibrary(pid_t pid) {
 
     mach_msg_type_number_t read(count);
     _krncall(thread_get_state(thread, flavor, reinterpret_cast<thread_state_t>(&state), &read));
-    _assert(count == count);
+    _assert(read == count);
 
 #if defined(__arm__)
     state.__r[0] = data;