mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r5801) - Codechange: The exception dialog showed the last modification-date of win32.c instead of the last compilation-date. Use __DATE__ __TIME__ instead of __TIMESTAMP__; only affected windows not built with mingw/cygwin.
This commit is contained in:
parent
a54702c43b
commit
adcaf779c4
8
win32.c
8
win32.c
|
@ -24,10 +24,6 @@
|
||||||
|
|
||||||
static bool _has_console;
|
static bool _has_console;
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
|
||||||
#define __TIMESTAMP__ __DATE__ __TIME__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__MINGW32__)
|
#if defined(__MINGW32__)
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -440,10 +436,10 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
|
||||||
{
|
{
|
||||||
SYSTEMTIME time;
|
SYSTEMTIME time;
|
||||||
GetLocalTime(&time);
|
GetLocalTime(&time);
|
||||||
output += sprintf(output,
|
output += snprintf(output, 8192,
|
||||||
"*** OpenTTD Crash Report ***\r\n"
|
"*** OpenTTD Crash Report ***\r\n"
|
||||||
"Date: %d-%.2d-%.2d %.2d:%.2d:%.2d\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.wYear,
|
||||||
time.wMonth,
|
time.wMonth,
|
||||||
time.wDay,
|
time.wDay,
|
||||||
|
|
Loading…
Reference in New Issue