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