/* Remove one or more consecutive backslashes starting from the second character of a given Unicode string. */
CHAR16* ExcludeTrailingBackslashes(IN CHAR16 *String)
/* Remove one or more consecutive backslashes starting from the second character of a given Unicode string. */
CHAR16* ExcludeTrailingBackslashes(IN CHAR16 *String)
{
  CHAR16  *TempString;
  switch (*(String + 1)) {
    case L'\\':
      break;
    case L'\0':
    default:
      String++;
      goto Exit;
  }
  TempString = String;
  while (*TempString != L'\0' && *TempString == L'\\') {
    TempString++;
  }
  if (TempString - 1 > String) {
    ReplaceLeft (String + 1, TempString);
  }
  String++;
Exit:
  return String;
}