#/** @file\r
-# Component description file for HiiDatabase module which produce a Framework HII instance\r
-# based on the avaliable UEFI HII protocol found in the platform.\r
+# Component description file for HiiDatabase module which produce a Framework HII Protocol instance\r
+# based on the avaliable UEFI HII protocol found in the platform. This modules enables modules complying\r
+# to Framework HII specification to able to run on a UEFI HII platform with only a rebuild. This is\r
+# to ensure that all HII packages are generated by UEFI HII package generation tools (UEFI VfrCompiler and\r
+# String Gather Tools). This thunk layer only produces the Frameowork HII protocol interface. The binary package\r
+# data format complying to UEFI HII specification.\r
#\r
# This module inits HII database and installs HII protocol based on the avaliable UEFI HII protocol found in the platform..\r
# Copyright (c) 2006 - 2008, Intel Corporation\r
Node->Signature = UEFI_IFR_BUFFER_STORAGE_NODE_SIGNATURE;\r
Node->Name = AllocateCopyPool (StrSize (Storage->Name), Storage->Name);\r
Node->DefaultId = DefaultStore->DefaultId;\r
+ Node->StoreId = Storage->VarStoreId;\r
CopyGuid (&Node->Guid, &Storage->Guid);\r
Node->Size = Storage->Size;\r
Node->Buffer = AllocateZeroPool (Node->Size);\r
//\r
if (Node->StoreId == RESERVED_VARSTORE_ID) {\r
Pack->VariableId = 0;\r
+ } else {\r
+ Pack->VariableId = Node->StoreId;\r
}\r
//\r
// Initialize EFI_HII_VARIABLE_PACK\r
//\r
Pack->Header.Type = 0;\r
Pack->Header.Length = Size;\r
- Pack->VariableId = Node->StoreId;\r
Pack->VariableNameLength = StrSize (Node->Name);\r
CopyMem (&Pack->VariableGuid, &Node->Guid, sizeof (EFI_GUID));\r
\r
a UEFI form set.\r
\r
\r
- @retval EFI_SUCCESS Successful.\r
- @retval EFI_INVALID_PARAMETER The default mask is not FRAMEWORK_EFI_IFR_FLAG_DEFAULT or \r
- FRAMEWORK_EFI_IFR_FLAG_MANUFACTURING.\r
+ @retval VOID\r
**/\r
VOID\r
FreeDefaultList (\r