mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
Fix crash handling code crashing
This commit is contained in:
parent
aa59c205ac
commit
5f446770e5
@ -845,7 +845,8 @@ static void AbortCommon(cc_result result, const char* raw_msg, void* ctx) {
|
|||||||
cc_string msg; char msgBuffer[3070 + 1];
|
cc_string msg; char msgBuffer[3070 + 1];
|
||||||
String_InitArray_NT(msg, msgBuffer);
|
String_InitArray_NT(msg, msgBuffer);
|
||||||
|
|
||||||
String_Format1(&msg, "ClassiCube crashed." _NL "Reason: %c" _NL, raw_msg);
|
String_AppendConst(&msg, "ClassiCube crashed." _NL);
|
||||||
|
if (raw_msg) String_Format1(&msg, "Reason: %c" _NL, raw_msg);
|
||||||
#ifdef CC_COMMIT_SHA
|
#ifdef CC_COMMIT_SHA
|
||||||
String_AppendConst(&msg, "Commit SHA: " CC_COMMIT_SHA _NL);
|
String_AppendConst(&msg, "Commit SHA: " CC_COMMIT_SHA _NL);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user