mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
Fixed: We need to pass the executable full path as first argument to CreateProcess
This commit is contained in:
parent
9c7c4d59db
commit
9e2ce6596d
1 changed files with 2 additions and 1 deletions
|
@ -761,7 +761,8 @@ static bool createProcess(const std::string &programName, const std::string &arg
|
|||
sProgramName = new wchar_t[MAX_PATH];
|
||||
wcscpy(sProgramName, (wchar_t*)ucProgramName.c_str());
|
||||
|
||||
args = arguments;
|
||||
// important! we need to specify the executable full path as first argument
|
||||
args = toString("\"%s\" ", programName.c_str()) + arguments;
|
||||
}
|
||||
|
||||
BOOL res = CreateProcessW(sProgramName, utf8ToWide(args), NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE | CREATE_NO_WINDOW, NULL, NULL, &si, &pi);
|
||||
|
|
Loading…
Reference in a new issue