* findclose must always be called (also when findfirst didn't find

anything)

git-svn-id: trunk@5570 -
This commit is contained in:
Jonas Maebe 2006-12-11 15:55:21 +00:00
parent 32e06e7a7a
commit 2f8c34a537

View File

@ -159,8 +159,8 @@ implementation
DirectoryEntries.Add(Dir.Name,Pointer(Ptrint(Dir.Attr)));
end;
until findnext(dir) <> 0;
findclose(dir);
end;
findclose(dir);
end;