mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 12:00:37 +01:00
LCL: made shellctrls unit UTF8 safe, reported on the mailing list by haword
git-svn-id: trunk@22744 -
This commit is contained in:
parent
e1d98bf7d7
commit
2f775eda3a
@ -346,7 +346,7 @@ begin
|
||||
|
||||
SearchStr := IncludeTrailingPathDelimiter(ABaseDir) + MaskStr;
|
||||
|
||||
FindResult := FindFirst(SearchStr, faAnyFile, DirInfo);
|
||||
FindResult := FindFirstUTF8(SearchStr, faAnyFile, DirInfo);
|
||||
|
||||
while FindResult = 0 do
|
||||
begin
|
||||
@ -375,10 +375,10 @@ begin
|
||||
// AddFile identifies if the file is valid or not
|
||||
if AddFile then AResult.AddObject(DirInfo.Name, ObjectData);
|
||||
|
||||
FindResult := FindNext(DirInfo);
|
||||
FindResult := FindNextUTF8(DirInfo);
|
||||
end;
|
||||
|
||||
SysUtils.FindClose(DirInfo);
|
||||
FindCloseUTF8(DirInfo);
|
||||
end;
|
||||
|
||||
class function TCustomShellTreeView.GetBasePath: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user