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:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user