Browse Source

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

git-svn-id: trunk@24725 -
Károly Balogh 12 năm trước cách đây
mục cha
commit
e7094cf1d6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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