1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 04:52:21 +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); DbgType* varType = CvGetType(localSym.typind, cvCompileUnit);
if (varType == NULL)
varType = CvGetType(T_VOID);
if (name != NULL) if (name != NULL)
{ {
@ -3301,8 +3303,9 @@ 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++)
{ {
@ -3314,7 +3317,6 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
} }
} }
} }
}
/*if (prevLocalVar != NULL) /*if (prevLocalVar != NULL)
{ {