hook SetUnhandledExceptionFilter for debug build
This commit is contained in:
parent
f352aedc59
commit
087f41ce11
7 changed files with 39 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue