mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 07:44:02 +08:00
Update monocommon.hpp
This commit is contained in:
parent
3f255bbd26
commit
e00647c058
@ -11,10 +11,14 @@ std::unordered_set<uint64_t>inserted_addr;
|
||||
void NewHook_check(HookParam& hp,LPCSTR n){
|
||||
std::lock_guard _(mutex);
|
||||
if(inserted_addr.find(hp.address)==inserted_addr.end()){
|
||||
|
||||
auto succ=NewHook(hp,n);
|
||||
#ifdef _WIN64
|
||||
hp.type|=BREAK_POINT;
|
||||
if(!succ){
|
||||
hp.type|=BREAK_POINT;
|
||||
NewHook(hp,n);
|
||||
}
|
||||
#endif
|
||||
NewHook(hp,n);
|
||||
inserted_addr.insert(hp.address);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user