fixed findclose

git-svn-id: trunk@3439 -
This commit is contained in:
mattias 2002-10-01 15:46:02 +00:00
parent b73b5353d5
commit b49c62e4b0

View File

@ -2090,14 +2090,15 @@ begin
FileList.Add(TempDir + FileInfo.Name);
end;//if
until SysUtils.FindNext(FileInfo)<>0;
SysUtils.FindClose(FileInfo);
end;//if
SysUtils.FindClose(FileInfo);
end;//for
finally
MaskList.Free;
end;//try-finally
//If selected then Look for and search subdirectories
if (recursive) and (SysUtils.FindFirst(TempDir
if (recursive) then begin
if (SysUtils.FindFirst(TempDir
+FindMask,faAnyFile,FileInfo)=0) then
begin
if ((faDirectory and FileInfo.Attr)>0) then
@ -2110,6 +2111,7 @@ begin
until SysUtils.FindNext(FileInfo)<>0;
end;//if
SysUtils.FindClose(FileInfo);
end;
end;//if
end;//if
end;//FindMatchingFiles