]> git.saurik.com Git - cydget.git/commitdiff
Always use MSHookSymbol as a MSFindSymbol wrapper.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 27 Nov 2014 10:55:31 +0000 (02:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 27 Nov 2014 10:55:31 +0000 (02:55 -0800)
LockScreen.mm

index f31f3a35a1dcd82e2069e49fb7c29cfe02e0aa53..52f278f6faea9f1077e13280dbf7bbe5b5d1ea1c 100644 (file)
@@ -1085,13 +1085,8 @@ static void dlset(Type_ &function, const char *name) {
     function = reinterpret_cast<Type_>(dlsym(RTLD_DEFAULT, name));
 }
 
     function = reinterpret_cast<Type_>(dlsym(RTLD_DEFAULT, name));
 }
 
-template <typename Type_>
-static void msset_(Type_ &function, const char *name, MSImageRef handle) {
-    function = reinterpret_cast<Type_>(MSFindSymbol(handle, name));
-}
-
 #define msset(function, handle) \
 #define msset(function, handle) \
-    msset_(function, "_" #function, handle)
+    MSHookSymbol(function, "_" #function, handle)
 
 @implementation WebCycriptLockScreenController
 
 
 @implementation WebCycriptLockScreenController