mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
add CloseHandle
This commit is contained in:
parent
76891cb766
commit
a393cd408d
29
src/debug.c
29
src/debug.c
@ -26,19 +26,24 @@ int dbg_exception_handler(EXCEPTION_POINTERS* exception)
|
|||||||
0,
|
0,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
MINIDUMP_EXCEPTION_INFORMATION info;
|
if (dmp)
|
||||||
info.ThreadId = GetCurrentThreadId();
|
{
|
||||||
info.ExceptionPointers = exception;
|
MINIDUMP_EXCEPTION_INFORMATION info;
|
||||||
info.ClientPointers = TRUE;
|
info.ThreadId = GetCurrentThreadId();
|
||||||
|
info.ExceptionPointers = exception;
|
||||||
|
info.ClientPointers = TRUE;
|
||||||
|
|
||||||
MiniDumpWriteDump(
|
MiniDumpWriteDump(
|
||||||
GetCurrentProcess(),
|
GetCurrentProcess(),
|
||||||
GetCurrentProcessId(),
|
GetCurrentProcessId(),
|
||||||
dmp,
|
dmp,
|
||||||
0,
|
0,
|
||||||
&info,
|
&info,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
CloseHandle(dmp);
|
||||||
|
}
|
||||||
|
|
||||||
return EXCEPTION_EXECUTE_HANDLER;
|
return EXCEPTION_EXECUTE_HANDLER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user