summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-07-14 20:04:54 +0000
committerglx <glx@openttd.org>2008-07-14 20:04:54 +0000
commitd9d32d3619e97861cc48c17427d20a4a57f52438 (patch)
treeb5d34b4adbd23705153fedf1f4ddb1f9a8c1a8ed /src/win32.cpp
parent42d0500f40c73be4b887e83a03b311d64e124225 (diff)
downloadopenttd-d9d32d3619e97861cc48c17427d20a4a57f52438.tar.xz
(svn r13701) -Codechange: add some more info in crash.log
Diffstat (limited to 'src/win32.cpp')
-rw-r--r--src/win32.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index 5081cff98..7c57c0746 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -33,6 +33,7 @@
#include <sys/stat.h>
#if defined(_MSC_VER) && !defined(WINCE)
#include <dbghelp.h>
+ #include "strings_func.h"
#endif
static bool _has_console;
@@ -497,6 +498,8 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
if (_exception_string)
output += sprintf(output, "Reason: %s\r\n", _exception_string);
+ output += sprintf(output, "Language: %s\r\n", _dynlang.curr_file);
+
#ifdef _M_AMD64
output += sprintf(output, "Exception %.8X at %.16IX\r\n"
"Registers:\r\n"