Skip to content

Commit

Permalink
Merge pull request #904 from UltraStar-Deluxe/fix-special-characters
Browse files Browse the repository at this point in the history
fix special characters in file and folder names
  • Loading branch information
basisbit authored Oct 11, 2024
2 parents e6bb354 + 31129e5 commit 459a0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/UFilesystem.pas
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface
UPath;

type
TSytemSearchRec = TSearchRec;
TSytemSearchRec = TUnicodeSearchRec;

TFileInfo = record
Time: integer; // timestamp
Expand Down Expand Up @@ -439,7 +439,7 @@ function TFileSystemImpl.ExcludeTrailingPathDelimiter(const FileName: IPath): IP

function TFileSystemImpl.FindFirst(const FilePattern: IPath; Attr: integer; var F: TSytemSearchRec): integer;
begin
Result := SysUtils.FindFirst(FilePattern.ToNative(), Attr, F);
Result := SysUtils.FindFirst(FilePattern.ToWide(), Attr, F);
end;

function TFileSystemImpl.FindNext(var F: TSytemSearchRec): integer;
Expand Down

0 comments on commit 459a0f8

Please sign in to comment.