From 028d2505fdf923baba2e0f53315992b3feba71e6 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 2 May 2019 01:30:07 +0100 Subject: [PATCH] Fix missing format specifier in windows crash log abort message --- src/os/windows/crashlog_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp index 4f36d77ea8..38b952c60a 100644 --- a/src/os/windows/crashlog_win.cpp +++ b/src/os/windows/crashlog_win.cpp @@ -543,7 +543,7 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep) if (abort_reason != nullptr) { TCHAR _emergency_crash[512]; _sntprintf(_emergency_crash, lengthof(_emergency_crash), - _T("A serious fault condition occurred in the game. The game will shut down.\n"), OTTD2FS(abort_reason)); + _T("A serious fault condition occurred in the game. The game will shut down. (%s)\n"), OTTD2FS(abort_reason)); MessageBox(nullptr, _emergency_crash, _T("Fatal Application Failure"), MB_ICONERROR); ExitProcess(3); }