This reverts commit
8cd4e734ccdfbc961c72aeaa8dbd3f5154171f9b.
It is not a real bug fix. It should not be pushed after
Hard Feature Freeze for edk2-stable201811 tag.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Bi Dandan <dandan.bi@intel.com>
//\r
ControlFlag = CfUpdateHelpString;\r
\r
- ASSERT (NewPos != NULL);\r
UpdateHighlightMenuInfo(NewPos, TopOfScreen, SkipValue);\r
\r
if (SkipHighLight) {\r
Temp2 = 0;\r
}\r
\r
- if (MenuOption == NULL || NewPos != &MenuOption->Link) {\r
+ if (NewPos != NULL && (MenuOption == NULL || NewPos != &MenuOption->Link)) {\r
if (MenuOption != NULL) {\r
//\r
// Remove the old highlight menu.\r