]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/debugrpt.cpp
don't crash when loading images with verbose==false (patch 1449823)
[wxWidgets.git] / src / common / debugrpt.cpp
index b52f6780b36baa6023f45797ab2be4b607a878b4..2391849334b30cffebfabe7255f2ab81d6a3877e 100644 (file)
@@ -190,10 +190,16 @@ wxDebugReport::wxDebugReport()
     // of course, this doesn't protect us against malicious users...
     wxFileName fn;
     fn.AssignTempFileName(appname);
+#if wxUSE_DATETIME
     m_dir.Printf(_T("%s%c%s_dbgrpt-%lu-%s"),
                  fn.GetPath().c_str(), wxFILE_SEP_PATH, appname.c_str(),
                  wxGetProcessId(),
                  wxDateTime::Now().Format(_T("%Y%m%dT%H%M%S")).c_str());
+#else
+    m_dir.Printf(_T("%s%c%s_dbgrpt-%lu"),
+                 fn.GetPath().c_str(), wxFILE_SEP_PATH, appname.c_str(),
+                 wxGetProcessId());
+#endif
 
     // as we are going to save the process state there use restrictive
     // permissions