浏览代码

fix redundant searches in FindObjectFile, if the object was found on the first try

git-svn-id: trunk@24725 -
Károly Balogh 12 年之前
父节点
当前提交
e7094cf1d6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/link.pas

+ 2 - 2
compiler/link.pas

@@ -210,8 +210,8 @@ Implementation
          begin
            if FileExists(FixFileName(s),false) then
             begin
-              foundfile:=ScriptFixFileName(s);
-              found:=true;
+              findobjectfile:=ScriptFixFileName(s);
+              exit;
             end;
          end;
         if pos('.',s)=0 then