mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 18:39:09 +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);
|
I:=Length(PWideName);
|
||||||
if I < OpenFile^.nFileOffset then
|
if I < OpenFile^.nFileOffset then
|
||||||
begin
|
begin
|
||||||
Inc(PWideName, I * 2 + 2);
|
Inc(PWideName, Succ(I));
|
||||||
I:=Length(PWideName);
|
I:=Length(PWideName);
|
||||||
while I > 0 do
|
while I > 0 do
|
||||||
begin
|
begin
|
||||||
AFiles.Add(ExpandFileName(Utf8Encode(PWideName)));
|
AFiles.Add(ExpandFileName(Utf8Encode(PWideName)));
|
||||||
Inc(PWideName, I * 2 + 2);
|
Inc(PWideName,Succ(I));
|
||||||
I:=Length(PWideName);
|
I:=Length(PWideName);
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user