Explorar o código

* findclose must always be called (also when findfirst didn't find
anything)

git-svn-id: trunk@5570 -

Jonas Maebe %!s(int64=19) %!d(string=hai) anos
pai
achega
2f8c34a537
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/cfileutils.pas

+ 1 - 1
compiler/cfileutils.pas

@@ -159,8 +159,8 @@ implementation
                     DirectoryEntries.Add(Dir.Name,Pointer(Ptrint(Dir.Attr)));
                 end;
             until findnext(dir) <> 0;
-            findclose(dir);
           end;
+        findclose(dir);
       end;