Forráskód Böngészése

* fixed exceptionhandling scanner (2nd attempt to load file was not in an try..except). Bug reported on German laz forum

git-svn-id: trunk@16333 -
marco 14 éve
szülő
commit
1beef3f3f5
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      packages/fcl-passrc/src/pscanner.pp

+ 5 - 1
packages/fcl-passrc/src/pscanner.pp

@@ -501,8 +501,12 @@ begin
     if BaseDirectory<>'' then
       begin
       FN:=SearchLowUpCase(BaseDirectory+AName);
-      If (FN<>'') then
+	  try
+      If (FN<>'') then   
         Result := TFileLineReader.Create(FN);
+      except 
+        Result:=nil;
+        end;		
       end;
     end;
 end;