MdeModulePkg/HiiDatabase: Fix Setup numeric default value incorrect issue
When default/manufacturing flag get removed from numeric varid, it can't get default value from StructurePcd in 'UpdateDefaultSettingInFormPackage' function since there is no EFI_IFR_DEFAULT_OP opcode in IFR file. Add a chance to get numeric default value from StructurePcd in the case that numeric minimum value will be used as default value. Signed-off-by: Chen Lin Z <lin.z.chen@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
a298a84478
commit
94f905b3bf
@@ -2308,6 +2308,29 @@ HiiGetConfigRespInfo (
|
||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This
|
||||
);
|
||||
|
||||
/**
|
||||
Find question default value from PcdNvStoreDefaultValueBuffer
|
||||
|
||||
@param DefaultId Default store ID
|
||||
@param EfiVarStore Point to EFI VarStore header
|
||||
@param IfrQuestionHdr Point to Question header
|
||||
@param ValueBuffer Point to Buffer includes the found default setting
|
||||
@param Width Width of the default value
|
||||
@param BitFieldQuestion Whether the Question is stored in Bit field.
|
||||
|
||||
@retval EFI_SUCCESS Question default value is found.
|
||||
@retval EFI_NOT_FOUND Question default value is not found.
|
||||
**/
|
||||
EFI_STATUS
|
||||
FindQuestionDefaultSetting (
|
||||
IN UINT16 DefaultId,
|
||||
IN EFI_IFR_VARSTORE_EFI *EfiVarStore,
|
||||
IN EFI_IFR_QUESTION_HEADER *IfrQuestionHdr,
|
||||
OUT VOID *ValueBuffer,
|
||||
IN UINTN Width,
|
||||
IN BOOLEAN BitFieldQuestion
|
||||
);
|
||||
|
||||
//
|
||||
// Global variables
|
||||
//
|
||||
|
Reference in New Issue
Block a user