mirror of https://github.com/acidanthera/audk.git
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:
parent
0192f2d7cb
commit
fbe0805b20
|
@ -3016,6 +3016,10 @@ ParseIfrData (
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IfrEfiVarStoreTmp == NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set default value base on the DefaultId list get from IFR data.
|
// Set default value base on the DefaultId list get from IFR data.
|
||||||
//
|
//
|
||||||
|
@ -3030,11 +3034,6 @@ ParseIfrData (
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IfrEfiVarStoreTmp == NULL) {
|
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
|
||||||
goto Done;
|
|
||||||
}
|
|
||||||
|
|
||||||
FindQuestionDefaultSetting (DefaultData.DefaultId, IfrEfiVarStoreTmp, &(IfrString->Question), (VOID *)StringData, VarWidth, QuestionReferBitField);
|
FindQuestionDefaultSetting (DefaultData.DefaultId, IfrEfiVarStoreTmp, &(IfrString->Question), (VOID *)StringData, VarWidth, QuestionReferBitField);
|
||||||
if ((DefaultData.Value.string != 0) && (StringData != NULL)) {
|
if ((DefaultData.Value.string != 0) && (StringData != NULL)) {
|
||||||
DefaultData.Value.string = InternalHiiSetString (HiiHandle, 0, StringData, NULL);
|
DefaultData.Value.string = InternalHiiSetString (HiiHandle, 0, StringData, NULL);
|
||||||
|
|
Loading…
Reference in New Issue