From 67daf50397a8b12f8c3b19b26df4509ebd116f98 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 8 Jan 2014 08:10:47 -0800 Subject: [PATCH] Fix WBMarkup on ARM64 (JSC::intializeThreading). --- WBMarkup.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WBMarkup.mm b/WBMarkup.mm index 77d7c37..f371367 100644 --- a/WBMarkup.mm +++ b/WBMarkup.mm @@ -70,6 +70,13 @@ static WBMarkup *SharedMarkup_; MSHookSymbol(WKViewLockFocus$, "WKViewLockFocus", WebCore); MSHookSymbol(WKViewUnlockFocus$, "WKViewUnlockFocus", WebCore); MSHookSymbol(WKViewDisplayRect$, "WKViewDisplayRect", WebCore); + + MSImageRef JavaScriptCore(MSGetImageByName("/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore")); + + void (*_ZN3JSC19initializeThreadingEv)(); + MSHookSymbol(_ZN3JSC19initializeThreadingEv, "__ZN3JSC19initializeThreadingEv", JavaScriptCore); + if (_ZN3JSC19initializeThreadingEv != NULL) + (*_ZN3JSC19initializeThreadingEv)(); } + (BOOL) isSharedMarkupCreated { -- 2.45.2