瀏覽代碼

# revisions: 45428

git-svn-id: tags/release_3_2_0@45429 -
marco 5 年之前
父節點
當前提交
986622bd58
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/scandir.pas

+ 2 - 1
compiler/scandir.pas

@@ -1495,7 +1495,8 @@ unit scandir;
           begin
           begin
             current_scanner.skipspace;
             current_scanner.skipspace;
             unitpath:=current_scanner.readcomment;
             unitpath:=current_scanner.readcomment;
-            if current_module.path<>'' then
+            if (current_module.path<>'') and
+               not path_absolute(unitpath) then
              unitpath:=current_module.path+source_info.DirSep+unitpath;
              unitpath:=current_module.path+source_info.DirSep+unitpath;
             current_module.localunitsearchpath.AddPath(unitpath,false);
             current_module.localunitsearchpath.AddPath(unitpath,false);
           end;
           end;