mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
fix ifdef
This commit is contained in:
parent
99c82aaad1
commit
566492577c
@ -568,7 +568,7 @@ void hook_init()
|
|||||||
|
|
||||||
void hook_early_init()
|
void hook_early_init()
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG && _MSC_VER
|
#if defined(_DEBUG) && defined(_MSC_VER)
|
||||||
hook_patch_iat(GetModuleHandle(NULL), FALSE, "kernel32.dll", "SetUnhandledExceptionFilter", (PROC)fake_SetUnhandledExceptionFilter);
|
hook_patch_iat(GetModuleHandle(NULL), FALSE, "kernel32.dll", "SetUnhandledExceptionFilter", (PROC)fake_SetUnhandledExceptionFilter);
|
||||||
|
|
||||||
DetourTransactionBegin();
|
DetourTransactionBegin();
|
||||||
@ -636,7 +636,7 @@ void hook_exit()
|
|||||||
hook_revert((HOOKLIST*)&g_hooks);
|
hook_revert((HOOKLIST*)&g_hooks);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG && _MSC_VER
|
#if defined(_DEBUG) && defined(_MSC_VER)
|
||||||
DetourTransactionBegin();
|
DetourTransactionBegin();
|
||||||
DetourUpdateThread(GetCurrentThread());
|
DetourUpdateThread(GetCurrentThread());
|
||||||
DetourDetach((PVOID*)&real_SetUnhandledExceptionFilter, (PVOID)fake_SetUnhandledExceptionFilter);
|
DetourDetach((PVOID*)&real_SetUnhandledExceptionFilter, (PVOID)fake_SetUnhandledExceptionFilter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user