From: Jay Freeman (saurik) Date: Thu, 27 Nov 2014 10:55:31 +0000 (-0800) Subject: Always use MSHookSymbol as a MSFindSymbol wrapper. X-Git-Tag: v0.9.4013~12 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/a27f7663adcd0feae73bf9dd58cc473d22dad2e7?ds=inline Always use MSHookSymbol as a MSFindSymbol wrapper. --- 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