Update monocommon.hpp

This commit is contained in:
恍兮惚兮 2024-03-23 19:37:06 +08:00
parent 3f255bbd26
commit e00647c058

View File

@ -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);
}
}