/* Removes the last string from StringList and frees the memory associated with it. */
EFI_STATUS RemoveLastStringFromList(IN STRING_LIST *StringList)
/* Removes the last string from StringList and frees the memory associated with it. */
EFI_STATUS RemoveLastStringFromList(IN STRING_LIST *StringList)
{
  if (StringList->Count == 0) {
    return EFI_INVALID_PARAMETER;
  }
  free (StringList->Strings[StringList->Count - 1]);
  StringList->Count--;
  return EFI_SUCCESS;
}