Browse Source

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

git-svn-id: trunk@29792 -
florian 10 years ago
parent
commit
00d41dc9fa
1 changed files with 1 additions and 1 deletions
  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;