Explorar o código

Really change extension of hs1 local variable in get_exepath

git-svn-id: trunk@40236 -
pierre %!s(int64=6) %!d(string=hai) anos
pai
achega
d55f80d2f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/globals.pas

+ 1 - 1
compiler/globals.pas

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