/* If MenuNumber is great or equal to the number of Menu Entry in the list, then ASSERT. */
MENU_ENTRY* LibGetMenuEntry(MENU_OPTION *MenuOption, UINTN MenuNumber)
/* If MenuNumber is great or equal to the number of Menu Entry in the list, then ASSERT. */
MENU_ENTRY* LibGetMenuEntry(MENU_OPTION *MenuOption, UINTN MenuNumber)
{
  MENU_ENTRY  *NewMenuEntry;
  UINTN       Index;
  LIST_ENTRY  *List;
  ASSERT (MenuNumber < MenuOption->MenuNumber);
  List = MenuOption->Head.ForwardLink;
  for (Index = 0; Index < MenuNumber; Index++) {
    List = List->ForwardLink;
  }
  NewMenuEntry = CR (List, MENU_ENTRY, Link, MENU_ENTRY_SIGNATURE);
  return NewMenuEntry;
}