mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-24 08:24:23 +01:00
Pass in variables as intended to CreateProcessW().
This commit is contained in:
parent
5d60b3af04
commit
c4e76950fa
@ -2872,7 +2872,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
|
|||||||
creaton_flags |= CREATE_NO_WINDOW;
|
creaton_flags |= CREATE_NO_WINDOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ret = CreateProcessW(nullptr, (LPWSTR)(modstr.ptrw()), nullptr, nullptr, 0, NORMAL_PRIORITY_CLASS & CREATE_NO_WINDOW, nullptr, nullptr, si_w, &pi.pi);
|
int ret = CreateProcessW(nullptr, (LPWSTR)(modstr.ptrw()), nullptr, nullptr, inherit_handles, creaton_flags, nullptr, nullptr, si_w, &pi.pi);
|
||||||
if (!ret && r_pipe) {
|
if (!ret && r_pipe) {
|
||||||
CloseHandle(pipe[0]); // Cleanup pipe handles.
|
CloseHandle(pipe[0]); // Cleanup pipe handles.
|
||||||
CloseHandle(pipe[1]);
|
CloseHandle(pipe[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user