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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user