diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index 2407c7ea6a..c9852891aa 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -2049,7 +2049,7 @@ UiDisplayMenu ( gStatementDimensions.LeftColumn + gModalSkipColumn, Link == TopOfScreen ? SkipValue : 0, BottomRow, - Link == NewPos && IsSelectable(MenuOption) + (BOOLEAN) ((Link == NewPos) && IsSelectable(MenuOption)) ); } else { DisplayOneMenu (MenuOption, @@ -2057,7 +2057,7 @@ UiDisplayMenu ( gStatementDimensions.LeftColumn, Link == TopOfScreen ? SkipValue : 0, BottomRow, - Link == NewPos && IsSelectable(MenuOption) + (BOOLEAN) ((Link == NewPos) && IsSelectable(MenuOption)) ); }