hook SetUnhandledExceptionFilter for debug build

This commit is contained in:
FunkyFr3sh 2023-06-29 21:13:04 +02:00
parent f352aedc59
commit 087f41ce11
7 changed files with 39 additions and 5 deletions

View file

@ -25,10 +25,10 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
{
case DLL_PROCESS_ATTACH:
{
#if _DEBUG
#ifdef _DEBUG
dbg_init();
TRACE("cnc-ddraw = %p\n", hDll);
SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)dbg_exception_handler);
g_dbg_exception_filter = SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)dbg_exception_handler);
#endif
g_ddraw_module = hDll;