X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c98ea90dcfba4a6e699aa5f0989bbdd575c3b430..f0dd108d4ea2d61a2d997101ee1eb80f73eaa5a8:/Mach/Inject.cpp diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 3f91398..1df9be3 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -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(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(&state), &read)); - _assert(count == count); + _assert(read == count); #if defined(__arm__) state.__r[0] = data;