mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 19:19:24 +02:00
lazutils: RunCmdFromPath: cut handles when starting process
git-svn-id: trunk@43389 -
This commit is contained in:
parent
1ae5a24b92
commit
35b07b5533
@ -212,6 +212,7 @@ begin
|
|||||||
// run
|
// run
|
||||||
BrowserProcess := TProcessUTF8.Create(nil);
|
BrowserProcess := TProcessUTF8.Create(nil);
|
||||||
try
|
try
|
||||||
|
BrowserProcess.InheritHandles:=false;
|
||||||
// Encloses the executable with "" if it's name has spaces
|
// Encloses the executable with "" if it's name has spaces
|
||||||
if Pos(' ',ProgramFilename)>0 then
|
if Pos(' ',ProgramFilename)>0 then
|
||||||
ProgramFilename:='"'+ProgramFilename+'"';
|
ProgramFilename:='"'+ProgramFilename+'"';
|
||||||
|
Loading…
Reference in New Issue
Block a user