fix mingw debug build
This commit is contained in:
parent
b34ec49a13
commit
4b7fe8531e
3 changed files with 8 additions and 2 deletions
|
@ -646,12 +646,13 @@ void hook_exit()
|
|||
|
||||
hook_revert((HOOKLIST*)&g_hook_hooklist);
|
||||
|
||||
#if defined(_DEBUG) && defined(_MSC_VER)
|
||||
#if defined(_DEBUG)
|
||||
#if defined(_MSC_VER)
|
||||
DetourTransactionBegin();
|
||||
DetourUpdateThread(GetCurrentThread());
|
||||
DetourDetach((PVOID*)&real_SetUnhandledExceptionFilter, (PVOID)fake_SetUnhandledExceptionFilter);
|
||||
DetourTransactionCommit();
|
||||
|
||||
#endif
|
||||
real_SetUnhandledExceptionFilter(g_dbg_exception_filter);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue