1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

don't create dmp file on windows ME builds

This commit is contained in:
FunkyFr3sh 2024-09-28 20:28:33 +02:00
parent 9bea18d038
commit 14020a3d31

View File

@ -39,6 +39,7 @@ LONG WINAPI dbg_exception_handler(EXCEPTION_POINTERS* exception)
{
g_dbg_crash_count++;
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
HANDLE dmp =
CreateFile(
g_dbg_crash_count == 1 ? g_dbg_dmp_path1 : g_dbg_dmp_path2,
@ -67,6 +68,7 @@ LONG WINAPI dbg_exception_handler(EXCEPTION_POINTERS* exception)
CloseHandle(dmp);
}
#endif
if (exception && exception->ExceptionRecord)
{