mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 21:24:12 +08:00
fix
This commit is contained in:
parent
cd292e6986
commit
381e8fc05b
@ -146,9 +146,6 @@ bool v8runscript_isolate(void* isolate){
|
|||||||
void v8runscript_isolate_bypass(hook_stack* stack, HookParam* hp, uintptr_t* data, uintptr_t* split, size_t* len){
|
void v8runscript_isolate_bypass(hook_stack* stack, HookParam* hp, uintptr_t* data, uintptr_t* split, size_t* len){
|
||||||
|
|
||||||
hp->type=HOOK_EMPTY;hp->text_fun=nullptr;
|
hp->type=HOOK_EMPTY;hp->text_fun=nullptr;
|
||||||
static bool runonce=false;
|
|
||||||
if(runonce)return;
|
|
||||||
runonce=true;
|
|
||||||
|
|
||||||
auto isolate=(void*)stack->ARG2;//测试正确,且和v8::Isolate::GetCurrent结果相同
|
auto isolate=(void*)stack->ARG2;//测试正确,且和v8::Isolate::GetCurrent结果相同
|
||||||
v8runscript_isolate(isolate);
|
v8runscript_isolate(isolate);
|
||||||
|
@ -107,4 +107,4 @@ function retryinject(times){
|
|||||||
//非主线程,甚至没有window对象,会弹窗报错
|
//非主线程,甚至没有window对象,会弹窗报错
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setTimeout(retryinject,1000,3);
|
retryinject(3)
|
Loading…
x
Reference in New Issue
Block a user