mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 13:47:23 +01:00
* 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:
parent
9538da64f9
commit
ddd02b7f26
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user