* Fix copy and paste error. Fixes issue #40863

(cherry picked from commit 963a55db52)
This commit is contained in:
Michaël Van Canneyt 2024-07-27 08:26:21 +02:00
parent d78e289701
commit 8363352c19

View File

@ -773,12 +773,12 @@ end;
function ExcludeTrailingBackslash(const S: AnsiString): AnsiString;
begin
Result:={$IFDEF FPC_DOTTEDUNITS}System.{$ENDIF}SysUtils.ExcludeLeadingPathDelimiter(S);
Result:={$IFDEF FPC_DOTTEDUNITS}System.{$ENDIF}SysUtils.ExcludeTrailingBackslash(S);
end;
function ExcludeTrailingPathDelimiter(const S: AnsiString): AnsiString;
begin
Result:={$IFDEF FPC_DOTTEDUNITS}System.{$ENDIF}SysUtils.ExcludeLeadingPathDelimiter(S);
Result:={$IFDEF FPC_DOTTEDUNITS}System.{$ENDIF}SysUtils.ExcludeTrailingPathDelimiter(S);
end;
function ExpandFileNameCase(const FileName: AnsiString; out