summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-06 06:41:09 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-06 06:41:09 +0000
commit40245175993beffd410783a5a2f84d8e264dbb30 (patch)
treedf9725fde27defa2b4eae021e68514746d69b018 /MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
parentcb0a42901a0931869ebcede637acec858be70cb7 (diff)
downloadedk2-platforms-40245175993beffd410783a5a2f84d8e264dbb30.tar.xz
Enable SetupBrowser to support multiple form class guid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9680 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Ui.c')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
index 5b1f361d9d..f8d0e07ab6 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
@@ -1037,7 +1037,7 @@ UpdateStatusBar (
break;
case NV_UPDATE_REQUIRED:
- if (gClassOfVfr != FORMSET_CLASS_FRONT_PAGE) {
+ if ((gClassOfVfr & FORMSET_CLASS_FRONT_PAGE) != FORMSET_CLASS_FRONT_PAGE) {
if (State) {
gST->ConOut->SetAttribute (gST->ConOut, INFO_TEXT);
PrintStringAt (
@@ -1694,7 +1694,7 @@ UiDisplayMenu (
ZeroMem (&Key, sizeof (EFI_INPUT_KEY));
- if (gClassOfVfr == FORMSET_CLASS_FRONT_PAGE) {
+ if ((gClassOfVfr & FORMSET_CLASS_FRONT_PAGE) == FORMSET_CLASS_FRONT_PAGE){
TopRow = LocalScreen.TopRow + FRONT_PAGE_HEADER_HEIGHT + SCROLL_ARROW_HEIGHT;
Row = LocalScreen.TopRow + FRONT_PAGE_HEADER_HEIGHT + SCROLL_ARROW_HEIGHT;
} else {
@@ -2404,7 +2404,7 @@ UiDisplayMenu (
break;
case ' ':
- if (gClassOfVfr != FORMSET_CLASS_FRONT_PAGE) {
+ if ((gClassOfVfr & FORMSET_CLASS_FRONT_PAGE) != FORMSET_CLASS_FRONT_PAGE) {
if (MenuOption->ThisTag->Operand == EFI_IFR_CHECKBOX_OP && !MenuOption->GrayOut) {
ScreenOperation = UiSelect;
}
@@ -2686,7 +2686,7 @@ UiDisplayMenu (
break;
}
- if (gClassOfVfr == FORMSET_CLASS_FRONT_PAGE) {
+ if ((gClassOfVfr & FORMSET_CLASS_FRONT_PAGE) == FORMSET_CLASS_FRONT_PAGE) {
//
// We never exit FrontPage, so skip the ESC
//