mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
win32 unicode: fix ProcessFileDialogResult - incorrect parse of filenames in SetFilesProperty
git-svn-id: trunk@13126 -
This commit is contained in:
parent
6dd71e054c
commit
c2236293fe
@ -454,12 +454,12 @@ var
|
||||
I:=Length(PWideName);
|
||||
if I < OpenFile^.nFileOffset then
|
||||
begin
|
||||
Inc(PWideName, I * 2 + 2);
|
||||
Inc(PWideName, Succ(I));
|
||||
I:=Length(PWideName);
|
||||
while I > 0 do
|
||||
begin
|
||||
AFiles.Add(ExpandFileName(Utf8Encode(PWideName)));
|
||||
Inc(PWideName, I * 2 + 2);
|
||||
Inc(PWideName,Succ(I));
|
||||
I:=Length(PWideName);
|
||||
end;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user