Fix Windows launcher
parent
a829e0c1fa
commit
d2fc408c1b
|
@ -27,8 +27,7 @@ TUPLE: CreateProcess-args
|
||||||
"STARTUPINFO" heap-size over set-STARTUPINFO-cb >>lpStartupInfo
|
"STARTUPINFO" heap-size over set-STARTUPINFO-cb >>lpStartupInfo
|
||||||
"PROCESS_INFORMATION" <c-object> >>lpProcessInformation
|
"PROCESS_INFORMATION" <c-object> >>lpProcessInformation
|
||||||
TRUE >>bInheritHandles
|
TRUE >>bInheritHandles
|
||||||
0 >>dwCreateFlags
|
0 >>dwCreateFlags ;
|
||||||
current-directory get (normalize-path) >>lpCurrentDirectory ;
|
|
||||||
|
|
||||||
: call-CreateProcess ( CreateProcess-args -- )
|
: call-CreateProcess ( CreateProcess-args -- )
|
||||||
{
|
{
|
||||||
|
@ -118,6 +117,7 @@ M: windows run-process* ( process -- handle )
|
||||||
[
|
[
|
||||||
dup make-CreateProcess-args
|
dup make-CreateProcess-args
|
||||||
tuck fill-redirection
|
tuck fill-redirection
|
||||||
|
current-directory get (normalize-path) cd
|
||||||
dup call-CreateProcess
|
dup call-CreateProcess
|
||||||
lpProcessInformation>>
|
lpProcessInformation>>
|
||||||
] with-destructors ;
|
] with-destructors ;
|
||||||
|
|
Loading…
Reference in New Issue