소스 검색

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