Enable buffer type when process some expression opcode which support buffer type.

Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12739 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10
2011-11-18 07:07:31 +00:00
parent ef40f0f6d6
commit 901ba0e78d
4 changed files with 218 additions and 49 deletions

View File

@@ -1841,6 +1841,10 @@ ParseOpCodes (
CurrentStatement->StorageWidth = (UINT16) (CurrentStatement->MaxContainers * Width);
CurrentStatement->BufferValue = AllocateZeroPool (CurrentStatement->StorageWidth);
CurrentStatement->ValueType = CurrentOption->Value.Type;
if (CurrentStatement->HiiValue.Type == EFI_IFR_TYPE_BUFFER) {
CurrentStatement->HiiValue.Buffer = CurrentStatement->BufferValue;
CurrentStatement->HiiValue.BufferLen = CurrentStatement->StorageWidth;
}
InitializeRequestElement (FormSet, CurrentStatement, CurrentForm);
}