Parcourir la source

* return false, if tdosinputfile.fileopen cannot open a file for reading

git-svn-id: trunk@29792 -
florian il y a 10 ans
Parent
commit
00d41dc9fa
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      compiler/finput.pas

+ 1 - 1
compiler/finput.pas

@@ -454,7 +454,7 @@ uses
         fileopen:=false;
         try
           f:=CFileStreamClass.Create(filename,fmOpenRead);
-          fileopen:=true;
+          fileopen:=CStreamError=0;
         except
         end;
       end;