added two FindCloses
This commit is contained in:
parent
5ed4c27732
commit
cfd2011e80
Binary file not shown.
|
@ -90,6 +90,7 @@ begin
|
||||||
Result.Add(eSearch.Name)
|
Result.Add(eSearch.Name)
|
||||||
until FindNext(eSearch) <> 0;
|
until FindNext(eSearch) <> 0;
|
||||||
end;
|
end;
|
||||||
|
SysUtils.FindClose(eSearch);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -206,8 +206,10 @@ end;
|
||||||
function FSize(eFile: String): Cardinal;
|
function FSize(eFile: String): Cardinal;
|
||||||
var eRec: TSearchRec;
|
var eRec: TSearchRec;
|
||||||
begin
|
begin
|
||||||
if FindFirst(eFile, faAnyFile, eRec) = 0 then
|
if FindFirst(eFile, faAnyFile, eRec) = 0 then begin
|
||||||
Result := eRec.Size
|
Result := eRec.Size;
|
||||||
|
SysUtils.FindClose(eRec);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
Result := 0;
|
Result := 0;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user