/* Create a menu entry by given menu type. */
MENU_ENTRY* LibCreateMenuEntry(VOID)
/* Create a menu entry by given menu type. */
MENU_ENTRY* LibCreateMenuEntry(VOID)
{
  MENU_ENTRY  *MenuEntry;
  MenuEntry = AllocateZeroPool (sizeof (MENU_ENTRY));
  if (MenuEntry == NULL) {
    return NULL;
  }
  MenuEntry->VariableContext = AllocateZeroPool (sizeof (FILE_CONTEXT));
  if (MenuEntry->VariableContext == NULL) {
    FreePool (MenuEntry);
    return NULL;
  }
  MenuEntry->Signature = MENU_ENTRY_SIGNATURE;
  return MenuEntry;
}