From: Jay Freeman (saurik) <saurik@saurik.com>
Date: Wed, 7 Nov 2012 15:23:09 +0000 (-0800)
Subject: Use correct variable to verify thread state access.
X-Git-Tag: v0.9.500%b1~120
X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/25517bc357886976f9222daed55330f0280f1e3a

Use correct variable to verify thread state access.
---

diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp
index 8679e03..1df9be3 100644
--- a/Mach/Inject.cpp
+++ b/Mach/Inject.cpp
@@ -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));
-    _assert(count == count);
+    _assert(read == count);
 
 #if defined(__arm__)
     state.__r[0] = data;