mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/HiiDatabaseDxe: Remove assert for VarStoreId = 0
It is legal for the VarStoreId of a question to be 0 per the UEFI spec: "Specifies the identifier of a previously declared variable store to use when storing the question’s value. A value of zero indicates no associated variable store." Instead of hitting an assert just skip this question as there is no value to return. Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
This commit is contained in:
parent
b45aff0dc9
commit
65b0d08786
|
@ -2101,8 +2101,9 @@ ExtractConfigRequest (
|
|||
//
|
||||
// Header->VarStoreId == 0 means no storage for this question.
|
||||
//
|
||||
ASSERT (Header->VarStoreId != 0);
|
||||
DEBUG ((DEBUG_INFO, "Varstore Id: 0x%x\n", Header->VarStoreId));
|
||||
if (Header->VarStoreId == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Storage = FindStorageFromVarId (FormPackage, Header->VarStoreId);
|
||||
ASSERT (Storage != NULL);
|
||||
|
|
Loading…
Reference in New Issue