When browser was requested to go to another formset, it also needs to update the hiihandle in Selection structure. If not update this handle, later when call function GetIfrBinaryData to get binary ifr data will return failed.

Also add sample code to use it.

Signed-off-by: ydong10
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12607 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10
2011-10-31 03:33:55 +00:00
parent 50bdaa0592
commit b2e444aaf7
6 changed files with 182 additions and 39 deletions

View File

@@ -322,11 +322,6 @@ SendForm (
CopyMem (&Selection->FormSetGuid, &gEfiHiiPlatformSetupFormsetGuid, sizeof (EFI_GUID));
}
//
// Try to find pre FormSet in the maintain backup list.
//
gOldFormSet = GetFormSetFromHiiHandle (Selection->Handle);
do {
FormSet = AllocateZeroPool (sizeof (FORM_BROWSER_FORMSET));
ASSERT (FormSet != NULL);
@@ -341,6 +336,11 @@ SendForm (
}
Selection->FormSet = FormSet;
//
// Try to find pre FormSet in the maintain backup list.
//
gOldFormSet = GetFormSetFromHiiHandle (Selection->Handle);
//
// Display this formset
//