Only use wxDateTime in wxMSW wxHandleFatalExceptions() if available.

Code using wxDateTime in wxHandleFatalExceptions() should be active only if
wxUSE_DATETIME==1.

See #16939.
This commit is contained in:
Artur Wieczorek
2015-04-05 09:34:11 +02:00
committed by Vadim Zeitlin
parent 01dde21e68
commit 07d43d96aa

View File

@@ -162,10 +162,16 @@ bool wxHandleFatalExceptions(bool doit)
// use PID and date to make the report file name more unique
wxString name = wxString::Format
(
#if wxUSE_DATETIME
wxT("%s_%s_%lu.dmp"),
#else
wxT("%s_%lu.dmp"),
#endif
wxTheApp ? (const wxChar*)wxTheApp->GetAppDisplayName().c_str()
: wxT("wxwindows"),
#if wxUSE_DATETIME
wxDateTime::Now().Format(wxT("%Y%m%dT%H%M%S")).c_str(),
#endif
::GetCurrentProcessId()
);