]> git.saurik.com Git - cycript.git/commitdiff
Use correct variable to verify thread state access.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 7 Nov 2012 15:23:09 +0000 (07:23 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 7 Nov 2012 15:23:09 +0000 (07:23 -0800)
Mach/Inject.cpp

index 8679e03a332c938e184dfff53b88532423de6ef3..1df9be388b12d5a4012944433579ef9ae05b9acc 100644 (file)
@@ -118,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));
 
     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;
 
 #if defined(__arm__)
     state.__r[0] = data;