From f571ef9880ed8f3f3b41b12015b5079b508151de Mon Sep 17 00:00:00 2001 From: Aaron Pop Date: Mon, 22 Dec 2014 02:21:53 +0000 Subject: Fixed VfrCompile crash on efivarstore statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Aaron Pop Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16544 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/C/VfrCompile/VfrSyntax.g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BaseTools/Source/C') diff --git a/BaseTools/Source/C/VfrCompile/VfrSyntax.g b/BaseTools/Source/C/VfrCompile/VfrSyntax.g index 1a5b3fd588..65a9e4e7f2 100644 --- a/BaseTools/Source/C/VfrCompile/VfrSyntax.g +++ b/BaseTools/Source/C/VfrCompile/VfrSyntax.g @@ -987,13 +987,13 @@ vfrStatementVarStoreEfi : _PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), LineNum); } else { _PCATCH(mCVfrDataStorage.DeclareBufferVarStore ( - TN->getText(), + StoreName, &Guid, &gCVfrVarDataTypeDB, TypeName, VarStoreId ), LineNum); - _PCATCH(mCVfrDataStorage.GetVarStoreId(TN->getText(), &VarStoreId, &Guid), VN); + _PCATCH(mCVfrDataStorage.GetVarStoreId(StoreName, &VarStoreId, &Guid), VN); _PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), N->getLine()); } VSEObj.SetGuid (&Guid); -- cgit v1.2.3