/* Function to search the list of mappings for the node on the list based on the key. */
SHELL_MAP_LIST* EFIAPI ShellCommandFindMapItem(IN CONST CHAR16 *MapKey)
/* Function to search the list of mappings for the node on the list based on the key. */
SHELL_MAP_LIST* EFIAPI ShellCommandFindMapItem(IN CONST CHAR16 *MapKey)
{
  SHELL_MAP_LIST  *MapListItem;
  for ( MapListItem = (SHELL_MAP_LIST *)GetFirstNode (&gShellMapList.Link)
        ; !IsNull (&gShellMapList.Link, &MapListItem->Link)
        ; MapListItem = (SHELL_MAP_LIST *)GetNextNode (&gShellMapList.Link, &MapListItem->Link)
        )
  {
    if (gUnicodeCollation->StriColl (gUnicodeCollation, MapListItem->MapName, (CHAR16 *)MapKey) == 0) {
      return (MapListItem);
    }
  }
  return (NULL);
}