From 566492577c60af18d6f82eb1a88445cba1a48a80 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Fri, 7 Jul 2023 01:23:41 +0200 Subject: [PATCH] fix ifdef --- src/hook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hook.c b/src/hook.c index ccc09c3..4b4a4e5 100644 --- a/src/hook.c +++ b/src/hook.c @@ -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);