summaryrefslogtreecommitdiff
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
commit9895afb43ef7be1900f8762e0ee58e7eba91302c (patch)
treeb5d34b4adbd23705153fedf1f4ddb1f9a8c1a8ed
parent71820bf1296d2d18800679dfb4ad5ac6265c6728 (diff)
downloadopenttd-9895afb43ef7be1900f8762e0ee58e7eba91302c.tar.xz
(svn r13701) -Codechange: add some more info in crash.log
-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"