mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fix for empty var type
This commit is contained in:
parent
9c09fbd6c0
commit
c334761aaa
1 changed files with 14 additions and 12 deletions
|
@ -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,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++)
|
||||
{
|
||||
|
@ -3314,7 +3317,6 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*if (prevLocalVar != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue