diff --git a/LunaHook/engine64/V8.cpp b/LunaHook/engine64/V8.cpp index f9bb215..a6335f0 100644 --- a/LunaHook/engine64/V8.cpp +++ b/LunaHook/engine64/V8.cpp @@ -25,7 +25,7 @@ bool InsertV8Hook(HMODULE module) { *data=(*(uintptr_t*)(stack->rcx))+23; int len = *(int*)(*data - 4); - if(len!=wcslen((wchar_t*)*data))return; + if(wcslen((wchar_t*)*data)*2rcx)+11; int len = *(int*)(*data - 4); - if(len!=wcslen((wchar_t*)*data))return; + if(wcslen((wchar_t*)*data)*2> getprocesslist() auto buffs=std::wstring(buff); auto str=stolower(buffs); - if(str.find(L"\\windows\\")!=str.npos || str.find(L"\\microsoft")!=str.npos|| str.find(L"\\windowsapps")!=str.npos)continue; + if(str.find(L":\\windows\\")!=str.npos || str.find(L"\\microsoft")!=str.npos|| str.find(L"\\windowsapps")!=str.npos)continue; if(exe_pid.find(buffs)==exe_pid.end()){