/* Find out if an alias is on the given list. */
BOOLEAN InternalIsAliasOnList(IN CONST CHAR16 *Alias, IN CONST LIST_ENTRY *List)
/* Find out if an alias is on the given list. */
BOOLEAN InternalIsAliasOnList(IN CONST CHAR16 *Alias, IN CONST LIST_ENTRY *List)
{
  ALIAS_LIST  *Node;
  ASSERT (Alias != NULL);
  for ( Node = (ALIAS_LIST *)GetFirstNode (List)
        ; !IsNull (List, &Node->Link)
        ; Node = (ALIAS_LIST *)GetNextNode (List, &Node->Link)
        )
  {
    ASSERT (Node->CommandString != NULL);
    ASSERT (Node->Alias != NULL);
    if (StrCmp (Node->Alias, Alias) == 0) {
      return (TRUE);
    }
  }
  return (FALSE);
}