mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
Windows: Only include symbol name in backtrace if it is also not empty string, fixes lines like '0xFF0000 - (+-133441)' appearing
This commit is contained in:
parent
82251f6606
commit
1585e50b18
@ -167,8 +167,8 @@ static void PrintFrame(cc_string* str, cc_uintptr addr, cc_uintptr symAddr, cons
|
||||
module = String_FromReadonly(modName);
|
||||
Utils_UNSAFE_GetFilename(&module);
|
||||
String_Format2(str, "0x%x - %s", &addr, &module);
|
||||
|
||||
if (symName) {
|
||||
|
||||
if (symName && symName[0]) {
|
||||
offset = (int)(addr - symAddr);
|
||||
String_Format2(str, "(%c+%i)" _NL, symName, &offset);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user