* Change so that when FindFirst initially returns nonzero, FindClose is no longer needed (Windows compatible)

git-svn-id: trunk@13210 -
This commit is contained in:
michael 2009-05-29 07:27:41 +00:00
parent 9538da64f9
commit ddd02b7f26

View File

@ -617,7 +617,11 @@ begin
Rslt.ExcludeAttr := 0;
TRec (Rslt.Time).T := FStat^.TimeLastWrite;
TRec (Rslt.Time).D := FStat^.DateLastWrite;
end else if (Rslt.Findhandle<>0) then
begin
FindClose(Rslt);
end;
Dispose (FStat);
end;