mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 05:30:37 +01:00
* only call findclose if findfirst succeeded
git-svn-id: trunk@25188 -
This commit is contained in:
parent
ba263f162b
commit
fcbc435435
@ -299,8 +299,8 @@ end;
|
||||
DirectoryEntries.Add(Dir.Name,Pointer(Ptrint(Dir.Attr)));
|
||||
end;
|
||||
until findnext(dir) <> 0;
|
||||
findclose(dir);
|
||||
end;
|
||||
findclose(dir);
|
||||
end;
|
||||
|
||||
|
||||
@ -1122,8 +1122,8 @@ end;
|
||||
end;
|
||||
end;
|
||||
until findnext(dir) <> 0;
|
||||
FindClose(dir);
|
||||
end;
|
||||
FindClose(dir);
|
||||
{$endif usedircache}
|
||||
if not subdirfound then
|
||||
WarnNonExistingPath(currpath);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user