diff options
author | comex | 2015-01-20 19:49:44 -0500 |
---|---|---|
committer | comex | 2015-01-20 19:54:09 -0500 |
commit | ba44cef0bfa106de3a4406fdaed071461f87a6f3 (patch) | |
tree | 738895cae66ba2bf1e7369b8a17a2d8d4a433293 /lib/darwin/substrate-compat.c | |
parent | more reorganization - move OS X/iOS specific stuff into its own directory (diff) | |
download | substitute-ba44cef0bfa106de3a4406fdaed071461f87a6f3.tar.gz |
progress on injection
Diffstat (limited to 'lib/darwin/substrate-compat.c')
-rw-r--r-- | lib/darwin/substrate-compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } /* |