From 25517bc357886976f9222daed55330f0280f1e3a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 7 Nov 2012 07:23:09 -0800 Subject: [PATCH] Use correct variable to verify thread state access. --- Mach/Inject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(&state), &read)); - _assert(count == count); + _assert(read == count); #if defined(__arm__) state.__r[0] = data; -- 2.45.2