diff --git a/compiler/link.pas b/compiler/link.pas index a35379f7d8..2972a2dcd9 100644 --- a/compiler/link.pas +++ b/compiler/link.pas @@ -210,8 +210,8 @@ Implementation begin if FileExists(FixFileName(s),false) then begin - findobjectfile:=ScriptFixFileName(s); - exit; + foundfile:=ScriptFixFileName(s); + found:=true; end; end; if pos('.',s)=0 then