mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 15:54:03 +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
|
||||
if(!succ){
|
||||
hp.type|=BREAK_POINT;
|
||||
#endif
|
||||
NewHook(hp,n);
|
||||
}
|
||||
#endif
|
||||
inserted_addr.insert(hp.address);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user