hook _invoke_watson

This commit is contained in:
FunkyFr3sh 2024-08-31 08:09:51 +02:00
parent 00bb6254a0
commit 1bdc2dc2b2
3 changed files with 30 additions and 2 deletions

View file

@ -659,8 +659,7 @@ void hook_init()
if (!IsDebuggerPresent())
{
/* Force access violation to produce a dmp file for debugging (disables watson) */
PATCH_SET((void*)_invoke_watson, "\xC6\x05\x00\x00\x00\x00\x00");
patch_ljmp((void*)_invoke_watson, (void*)dbg_invoke_watson);
}
}
#endif