// We are NOT!! removing this StringPtr buffer via FreePool since it is being used in the menuoptions, we will do\r
// it in UiFreeMenu.\r
//\r
- MenuOption = UiAddMenuOption (StringPtr, Selection->Handle, Statement, NumberOfLines, MenuItemCount);\r
+ MenuOption = UiAddMenuOption (StringPtr, Selection->Handle, Selection->Form, Statement, NumberOfLines, MenuItemCount);\r
MenuItemCount++;\r
\r
if (MenuOption->IsQuestion && !MenuOption->ReadOnly) {\r
CHAR16 YesResponse;\r
CHAR16 NoResponse;\r
EFI_INPUT_KEY Key;\r
- EFI_STATUS Status;\r
BROWSER_SETTING_SCOPE Scope;\r
\r
CurrentMenu = Selection->CurrentMenu;\r
//\r
if ((gBrowserSettingScope == FormLevel && Selection->Form->NvUpdateRequired) ||\r
(gBrowserSettingScope == FormSetLevel && IsNvUpdateRequired(Selection->FormSet) && Scope == FormSetLevel)) {\r
- Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
+ gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
\r
YesResponse = gYesResponse[0];\r
NoResponse = gNoResponse[0];\r
//\r
// If the user hits the YesResponse key\r
//\r
- Status = SubmitForm (Selection->FormSet, Selection->Form, Scope);\r
+ SubmitForm (Selection->FormSet, Selection->Form, Scope);\r
} else {\r
//\r
// If the user hits the NoResponse key\r
//\r
- Status = DiscardForm (Selection->FormSet, Selection->Form, Scope);\r
+ DiscardForm (Selection->FormSet, Selection->Form, Scope);\r
}\r
}\r
\r
// We are going to leave current FormSet, so check uncommited data in this FormSet\r
//\r
if (gBrowserSettingScope != SystemLevel && IsNvUpdateRequired(Selection->FormSet)) {\r
- Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
+ gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
\r
YesResponse = gYesResponse[0];\r
NoResponse = gNoResponse[0];\r
//\r
// If the user hits the YesResponse key\r
//\r
- Status = SubmitForm (Selection->FormSet, Selection->Form, FormSetLevel);\r
+ SubmitForm (Selection->FormSet, Selection->Form, FormSetLevel);\r
} else {\r
//\r
// If the user hits the NoResponse key\r
//\r
- Status = DiscardForm (Selection->FormSet, Selection->Form, FormSetLevel);\r
+ DiscardForm (Selection->FormSet, Selection->Form, FormSetLevel);\r
}\r
}\r
\r