Skip to content

Commit

Permalink
use ToWide instead of ToNative. can probably be repeated/remove unuse…
Browse files Browse the repository at this point in the history
…d stuff later
  • Loading branch information
barbeque-squared committed Oct 7, 2024
1 parent e3a4324 commit 31129e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/UFilesystem.pas
Original file line number Diff line number Diff line change
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 31129e5

Please sign in to comment.