Skip to content

Commit

Permalink
don't create dmp file on windows ME builds
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Sep 28, 2024
1 parent 9bea18d commit 14020a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -67,6 +68,7 @@ LONG WINAPI dbg_exception_handler(EXCEPTION_POINTERS* exception)

CloseHandle(dmp);
}
#endif

if (exception && exception->ExceptionRecord)
{
Expand Down

0 comments on commit 14020a3

Please sign in to comment.