1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +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()
{
#ifdef _DEBUG && _MSC_VER
#if defined(_DEBUG) && defined(_MSC_VER)
hook_patch_iat(GetModuleHandle(NULL), FALSE, "kernel32.dll", "SetUnhandledExceptionFilter", (PROC)fake_SetUnhandledExceptionFilter);
DetourTransactionBegin();
@ -636,7 +636,7 @@ void hook_exit()
hook_revert((HOOKLIST*)&g_hooks);
}
#ifdef _DEBUG && _MSC_VER
#if defined(_DEBUG) && defined(_MSC_VER)
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourDetach((PVOID*)&real_SetUnhandledExceptionFilter, (PVOID)fake_SetUnhandledExceptionFilter);