Răsfoiți Sursa

Really change extension of hs1 local variable in get_exepath

git-svn-id: trunk@40236 -
pierre 6 ani în urmă
părinte
comite
d55f80d2f9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      compiler/globals.pas

+ 1 - 1
compiler/globals.pas

@@ -1420,7 +1420,7 @@ implementation
        if localexepath='' then
        if localexepath='' then
         begin
         begin
           hs1 := ExtractFileName(exeName);
           hs1 := ExtractFileName(exeName);
-          ChangeFileExt(hs1,source_info.exeext);
+	  hs1 := ChangeFileExt(hs1,source_info.exeext);
 {$ifdef macos}
 {$ifdef macos}
           FindFile(hs1,GetEnvironmentVariable('Commands'),false,localExepath);
           FindFile(hs1,GetEnvironmentVariable('Commands'),false,localExepath);
 {$else macos}
 {$else macos}