mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
Fix missing format specifier in windows crash log abort message
This commit is contained in:
parent
5fe784f520
commit
028d2505fd
@ -543,7 +543,7 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
|
|||||||
if (abort_reason != nullptr) {
|
if (abort_reason != nullptr) {
|
||||||
TCHAR _emergency_crash[512];
|
TCHAR _emergency_crash[512];
|
||||||
_sntprintf(_emergency_crash, lengthof(_emergency_crash),
|
_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);
|
MessageBox(nullptr, _emergency_crash, _T("Fatal Application Failure"), MB_ICONERROR);
|
||||||
ExitProcess(3);
|
ExitProcess(3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user