1
0
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:
FunkyFr3sh 2023-07-07 01:23:41 +02:00
parent 99c82aaad1
commit 566492577c

View File

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