Fixed VfrCompile crash on efivarstore statement.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Aaron Pop <aaronp@ami.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16544 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Aaron Pop 2014-12-22 02:21:53 +00:00 committed by ydong10
parent 36c6413f76
commit f571ef9880
1 changed files with 2 additions and 2 deletions

View File

@ -987,13 +987,13 @@ vfrStatementVarStoreEfi :
_PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), LineNum); _PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), LineNum);
} else { } else {
_PCATCH(mCVfrDataStorage.DeclareBufferVarStore ( _PCATCH(mCVfrDataStorage.DeclareBufferVarStore (
TN->getText(), StoreName,
&Guid, &Guid,
&gCVfrVarDataTypeDB, &gCVfrVarDataTypeDB,
TypeName, TypeName,
VarStoreId VarStoreId
), LineNum); ), LineNum);
_PCATCH(mCVfrDataStorage.GetVarStoreId(TN->getText(), &VarStoreId, &Guid), VN); _PCATCH(mCVfrDataStorage.GetVarStoreId(StoreName, &VarStoreId, &Guid), VN);
_PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), N->getLine()); _PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), N->getLine());
} }
VSEObj.SetGuid (&Guid); VSEObj.SetGuid (&Guid);