Base on the value type to get the value for default opcode.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14006 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1922,7 +1922,7 @@ ParseIfrData (
|
||||
//
|
||||
DefaultData.Type = DefaultValueFromOpcode;
|
||||
DefaultData.DefaultId = VarDefaultId;
|
||||
CopyMem (&DefaultData.Value, &IfrDefault->Value, sizeof (EFI_IFR_TYPE_VALUE));
|
||||
CopyMem (&DefaultData.Value, &IfrDefault->Value, IfrDefault->Header.Length - OFFSET_OF (EFI_IFR_DEFAULT, Value));
|
||||
|
||||
// If the value field is expression, set the cleaned flag.
|
||||
if (IfrDefault->Type == EFI_IFR_TYPE_OTHER) {
|
||||
|
Reference in New Issue
Block a user