瀏覽代碼

* Use ExeSearch instead of FileSearch to find process executable

git-svn-id: trunk@12951 -
joost 16 年之前
父節點
當前提交
0721235ab3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-process/src/unix/process.inc

+ 1 - 1
packages/fcl-process/src/unix/process.inc

@@ -281,7 +281,7 @@ begin
           end;
 
         if not FileExists(PName) then begin
-          FoundName := FileSearch(Pname,fpgetenv('PATH'));
+          FoundName := ExeSearch(Pname,fpgetenv('PATH'));
           if FoundName<>'' then
             PName:=FoundName
           else