[svn] Restore automatic crashlog generation on Windows. Make sure to have a Crashes folder in the working directory of the executables.

--HG--
branch : trunk
This commit is contained in:
w12x
2008-10-23 05:57:15 -05:00
parent b8362cd7f1
commit c98b24cf29
7 changed files with 49 additions and 3 deletions

View File

@@ -14,8 +14,7 @@
#define _NO_CVCONST_H
#include <dbghelp.h>
#include "WheatyExceptionReport.h"
#include "svn_revision.h"
#define CrashFolder _T("Crashs")
#define CrashFolder _T("Crashes")
//#pragma comment(linker, "/defaultlib:dbghelp.lib")
inline LPTSTR ErrorMessage(DWORD dw)
@@ -386,7 +385,6 @@ PEXCEPTION_POINTERS pExceptionInfo )
GetLocalTime(&systime);
// Start out with a banner
_tprintf(_T("Revision: %s\r\n"), SVN_REVISION);
_tprintf(_T("Date %u:%u:%u. Time %u:%u \r\n"), systime.wDay, systime.wMonth, systime.wYear, systime.wHour, systime.wMinute);
PEXCEPTION_RECORD pExceptionRecord = pExceptionInfo->ExceptionRecord;