MdeModulePkg/SetupBrowserDxe: Fix incorrect local variable used

https://bugzilla.tianocore.org/show_bug.cgi?id=280

Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
Dandan Bi 2016-12-05 19:18:13 +08:00 committed by Star Zeng
parent d138a2e987
commit 919278054f
1 changed files with 5 additions and 4 deletions

View File

@ -3535,6 +3535,7 @@ SubmitForSystem (
{
EFI_STATUS Status;
LIST_ENTRY *Link;
LIST_ENTRY *FormLink;
LIST_ENTRY *StorageLink;
FORMSET_STORAGE *FormSetStorage;
FORM_BROWSER_FORM *Form;
@ -3625,10 +3626,10 @@ SubmitForSystem (
}
}
Link = GetFirstNode (&LocalFormSet->FormListHead);
while (!IsNull (&LocalFormSet->FormListHead, Link)) {
Form = FORM_BROWSER_FORM_FROM_LINK (Link);
Link = GetNextNode (&LocalFormSet->FormListHead, Link);
FormLink = GetFirstNode (&LocalFormSet->FormListHead);
while (!IsNull (&LocalFormSet->FormListHead, FormLink)) {
Form = FORM_BROWSER_FORM_FROM_LINK (FormLink);
FormLink = GetNextNode (&LocalFormSet->FormListHead, FormLink);
//
// Call callback with Changed type to inform the driver.
//