Skip to content

Commit

Permalink
Modified Windows 64 bit crash dump file name
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Jul 31, 2019
1 parent fad4684 commit b241962
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Server/core/CCrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ void CCrashHandler::DumpMiniDump(_EXCEPTION_POINTERS* pException, CExceptionInfo
if (strModuleName.length() == 0)
strModuleName = "unknown";

#ifdef _WIN64
strModuleName += "64";
#endif

SString strFilename("server_%s_%s_%08x_%x_%04d%02d%02d_%02d%02d.dmp", MTA_DM_BUILDTAG_LONG, strModuleName.c_str(),
pExceptionInformation->GetAddressModuleOffset(), pExceptionInformation->GetCode() & 0xffff, SystemTime.wYear, SystemTime.wMonth,
SystemTime.wDay, SystemTime.wHour, SystemTime.wMinute);
Expand Down

0 comments on commit b241962

Please sign in to comment.