summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-14 21:31:51 +0000
committerDarkvater <darkvater@openttd.org>2006-03-14 21:31:51 +0000
commit873768c2d2bdd6bc736d30abf2c2edc9f0fe26fb (patch)
treea73dd6fd1720934fdad83366bd47162b9abeef0b
parent91facef36aa6909e0846ec3fca777c5ad5c41084 (diff)
downloadopenttd-873768c2d2bdd6bc736d30abf2c2edc9f0fe26fb.tar.xz
(svn r3872) - [win32] Show the revision in crash.txt and enable the button to show the crash text in the crash-window
-rw-r--r--ottdres.rc2
-rw-r--r--win32.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ottdres.rc b/ottdres.rc
index 5b3293482..fbc5e93eb 100644
--- a/ottdres.rc
+++ b/ottdres.rc
@@ -50,7 +50,7 @@ BEGIN
PUSHBUTTON "&Close",12,7,49,50,14
PUSHBUTTON "&Submit report",14,81,49,68,14,WS_DISABLED
PUSHBUTTON "&Emergency save",13,155,49,68,14
- PUSHBUTTON "",15,243,49,55,14,WS_DISABLED
+ PUSHBUTTON "",15,243,49,55,14
EDITTEXT 11,7,70,291,118,ES_MULTILINE | ES_READONLY | WS_VSCROLL |
WS_HSCROLL | NOT WS_TABSTOP
LTEXT "",10,36,7,262,34
diff --git a/win32.c b/win32.c
index 9e01aed96..f4e642efc 100644
--- a/win32.c
+++ b/win32.c
@@ -427,6 +427,7 @@ extern bool CloseConsoleLogIfActive(void);
static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
{
+ extern const char _openttd_revision[];
char *output;
static bool had_exception;
@@ -451,7 +452,7 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
time.wHour,
time.wMinute,
time.wSecond,
- "???"
+ _openttd_revision
);
}