MdeModulePkg/HiiDatabaseDxe: Remove buffer error for string default.

Remove efivarstore IFR buffer error when string load default.
In the case of varstore type IFR, it will be NULL,
just break into next opcode process.

Resolve issue from commit cbe8a09dba
varstore type IFR string might return status error
while execute ExtractConfig function.

Signed-off-by: Longhao Lee <longhaox.lee@intel.com>
This commit is contained in:
Longhaox Lee 2025-02-14 16:44:06 +08:00 committed by Liming Gao
parent 0192f2d7cb
commit fbe0805b20
1 changed files with 4 additions and 5 deletions

View File

@ -3016,6 +3016,10 @@ ParseIfrData (
goto Done;
}
if (IfrEfiVarStoreTmp == NULL) {
break;
}
//
// Set default value base on the DefaultId list get from IFR data.
//
@ -3030,11 +3034,6 @@ ParseIfrData (
goto Done;
}
if (IfrEfiVarStoreTmp == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto Done;
}
FindQuestionDefaultSetting (DefaultData.DefaultId, IfrEfiVarStoreTmp, &(IfrString->Question), (VOID *)StringData, VarWidth, QuestionReferBitField);
if ((DefaultData.Value.string != 0) && (StringData != NULL)) {
DefaultData.Value.string = InternalHiiSetString (HiiHandle, 0, StringData, NULL);