1
0
Fork 0

(svn r5858) - Backport from trunk (r5801):

The exception dialog showed the last modification-date of win32.c instead of the
  last compilation-date.
release/0.4
Darkvater 2006-08-12 12:13:08 +00:00
parent f2e4b69d5c
commit ffa39381d9
1 changed files with 2 additions and 6 deletions

View File

@ -22,10 +22,6 @@
static bool _has_console;
#if defined(__MINGW32__) || defined(__CYGWIN__)
#define __TIMESTAMP__ __DATE__ __TIME__
#endif
#if defined(__MINGW32__)
#include <stdint.h>
#endif
@ -445,10 +441,10 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
{
SYSTEMTIME time;
GetLocalTime(&time);
output += sprintf(output,
output += snprintf(output, 8192,
"*** OpenTTD Crash Report ***\r\n"
"Date: %d-%.2d-%.2d %.2d:%.2d:%.2d\r\n"
"Build: %s built on " __TIMESTAMP__ "\r\n",
"Build: %s built on " __DATE__ " " __TIME__ "\r\n",
time.wYear,
time.wMonth,
time.wDay,