win32 unicode: fix ProcessFileDialogResult - incorrect parse of filenames in SetFilesProperty

git-svn-id: trunk@13126 -
This commit is contained in:
paul 2007-12-03 14:50:23 +00:00
parent 6dd71e054c
commit c2236293fe

View File

@ -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