Explorar o código

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

git-svn-id: trunk@29792 -
florian %!s(int64=10) %!d(string=hai) anos
pai
achega
00d41dc9fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;