From ba44cef0bfa106de3a4406fdaed071461f87a6f3 Mon Sep 17 00:00:00 2001 From: comex Date: Tue, 20 Jan 2015 19:49:44 -0500 Subject: progress on injection --- lib/darwin/substrate-compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/darwin/substrate-compat.c') diff --git a/lib/darwin/substrate-compat.c b/lib/darwin/substrate-compat.c index 3658ac7..cf44b19 100644 --- a/lib/darwin/substrate-compat.c +++ b/lib/darwin/substrate-compat.c @@ -32,10 +32,10 @@ void *SubFindSymbol(void *image, const char *name) { return NULL; } - substitute_sym *sym; - if (substitute_find_private_syms(image, &name, &sym, 1) || !sym) + void *ptr; + if (substitute_find_private_syms(image, &name, &ptr, 1)) return NULL; - return substitute_sym_to_ptr(image, sym); + return ptr; } /* -- cgit v1.2.3