From a27f7663adcd0feae73bf9dd58cc473d22dad2e7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 27 Nov 2014 02:55:31 -0800 Subject: [PATCH] Always use MSHookSymbol as a MSFindSymbol wrapper. --- LockScreen.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/LockScreen.mm b/LockScreen.mm index f31f3a3..52f278f 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -1085,13 +1085,8 @@ static void dlset(Type_ &function, const char *name) { function = reinterpret_cast(dlsym(RTLD_DEFAULT, name)); } -template -static void msset_(Type_ &function, const char *name, MSImageRef handle) { - function = reinterpret_cast(MSFindSymbol(handle, name)); -} - #define msset(function, handle) \ - msset_(function, "_" #function, handle) + MSHookSymbol(function, "_" #function, handle) @implementation WebCycriptLockScreenController -- 2.45.2