Support Name/Value Storage in UEFI2.1 HII driver.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Feb 2010 02:31:18 +0000 (02:31 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Feb 2010 02:31:18 +0000 (02:31 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9976 6f19259b-4bc3-4df7-8a09-765794883524

edk2/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/UefiIfrParser.c

index 979d4be..52b253a 100644 (file)
@@ -622,6 +622,16 @@ ParseOpCodes (
       if (ThunkContext != NULL && ThunkContext->ByFrameworkHiiNewPack) {\r
         ASSERT (FALSE);\r
       }\r
+\r
+      //\r
+      // Create a name/value Storage for this FormSet\r
+      //\r
+      Storage = CreateStorage (FormSet);\r
+      Storage->Type = EFI_HII_VARSTORE_NAME_VALUE;\r
+\r
+      CopyMem (&Storage->VarStoreId, &((EFI_IFR_VARSTORE_NAME_VALUE *) OpCodeData)->VarStoreId, sizeof (EFI_VARSTORE_ID));\r
+      CopyMem (&Storage->Guid,       &((EFI_IFR_VARSTORE_NAME_VALUE *) OpCodeData)->Guid,       sizeof (EFI_GUID));\r
+\r
       break;\r
 \r
     case EFI_IFR_VARSTORE_EFI_OP:\r