LCL: fixed adding normal files to the file listbox (bug #7465)

git-svn-id: trunk@10430 -
This commit is contained in:
vincents 2007-01-12 11:01:28 +00:00
parent e8d1b7295b
commit b8104ed672

View File

@ -156,6 +156,7 @@ begin
then
Repeat
if FileInFilenameMasks(Info.Name,Mask) then begin
writeln(Info.Name, ' ', Info.Attr);
Added:=false;
AddFile(ftReadOnly,faReadOnly);
AddFile(ftHidden,faHidden);
@ -163,7 +164,9 @@ begin
AddFile(ftVolumeID,faVolumeId);
AddFile(ftDirectory,faDirectory);
AddFile(ftArchive,faArchive);
AddFile(ftNormal,faArchive);
if not Added and (ftNormal in FileType) and
(faAnyFile and Info.Attr=0) then
Items.Add(Info.Name);
end;
Until SysUtils.FindNext(Info) <> 0;
SysUtils.FindClose(Info);