From dd6cc92035ce59aa85cba163581773c895ad0df2 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 2 Dec 2016 16:00:22 +0100 Subject: [PATCH] Fixed: We need to pass the executable full path as first argument to CreateProcess --HG-- branch : develop --- code/nel/src/misc/common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/nel/src/misc/common.cpp b/code/nel/src/misc/common.cpp index d08e38488..f455f121f 100644 --- a/code/nel/src/misc/common.cpp +++ b/code/nel/src/misc/common.cpp @@ -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);