1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Fix for empty var type

This commit is contained in:
Brian Fiete 2020-05-15 06:26:59 -07:00
parent 9c09fbd6c0
commit c334761aaa

View file

@ -2789,6 +2789,8 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
}
DbgType* varType = CvGetType(localSym.typind, cvCompileUnit);
if (varType == NULL)
varType = CvGetType(T_VOID);
if (name != NULL)
{
@ -3301,17 +3303,17 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
}
}*/
}
}
if (compileUnit->mLanguage != DbgLanguage_Beef)
if ((compileUnit->mLanguage != DbgLanguage_Beef) && (localVar->mName != NULL))
{
for (char* cPtr = (char*)localVar->mName; true; cPtr++)
{
for (char* cPtr = (char*)localVar->mName; true; cPtr++)
{
char c = *cPtr;
if (c == 0)
break;
if ((c == '<') || (c == '>'))
*cPtr = '$';
}
char c = *cPtr;
if (c == 0)
break;
if ((c == '<') || (c == '>'))
*cPtr = '$';
}
}
}