mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Dbg crash fix
This commit is contained in:
parent
da0bff04a4
commit
52786e96ac
1 changed files with 2 additions and 2 deletions
|
@ -2725,13 +2725,13 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
|
|||
break;
|
||||
REGREL32* regRel32 = (REGREL32*)dataStart;
|
||||
const char* name = DbgDupString((const char*)regRel32->name);
|
||||
DbgType* varType = CvGetType(regRel32->typind);
|
||||
DbgType* varType = CvGetType(regRel32->typind);
|
||||
|
||||
_NextUnrangedLocalVar(name, varType);
|
||||
|
||||
localVar->mName = name;
|
||||
localVar->mCompileUnit = compileUnit;
|
||||
if ((localVar->mType != NULL) && (!localVar->mType->IsPointer()) && (varType->IsPointer()))
|
||||
if ((localVar->mType != NULL) && (!localVar->mType->IsPointer()) && (varType != NULL) && (varType->IsPointer()))
|
||||
localVar->mSigNoPointer = true;
|
||||
localVar->mType = varType;
|
||||
// This is location data now, not just a S_LOCAL opener
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue