Skip to content

Commit b0fb8d0

Browse files
committed
hook SetUnhandledExceptionFilter for mingw debug build
1 parent 4b7fe85 commit b0fb8d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hook.c

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ HOOKLIST g_hook_hooklist[] =
146146
{ "LoadLibraryExW", (PROC)fake_LoadLibraryExW, (PROC*)&real_LoadLibraryExW, HOOK_SKIP_2 },
147147
{ "GetProcAddress", (PROC)fake_GetProcAddress, (PROC*)&real_GetProcAddress, HOOK_SKIP_2 },
148148
{ "GetDiskFreeSpaceA", (PROC)fake_GetDiskFreeSpaceA, (PROC*)&real_GetDiskFreeSpaceA, HOOK_SKIP_2 },
149+
#if defined(_DEBUG) && defined(__GNUC__)
150+
{ "SetUnhandledExceptionFilter", (PROC)fake_SetUnhandledExceptionFilter, (PROC*)&real_SetUnhandledExceptionFilter, 0 },
151+
#endif
149152
{ "", NULL, NULL, 0 }
150153
}
151154
},

0 commit comments

Comments
 (0)