We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22efc0b commit 99318b7Copy full SHA for 99318b7
COREDLL/winbase_wcecl.cpp
@@ -171,9 +171,13 @@ BOOL WINAPI CreateProcessW_WCECL(
171
LPSTARTUPINFO psiStartInfo,
172
LPPROCESS_INFORMATION pProcInfo)
173
{
174
+ std::wstring commandLine = std::wstring(pszImageName) + L" " + std::wstring(pszCmdLine);
175
+ wchar_t* commandLineCString = new wchar_t[commandLine.length() + 1];
176
+ wcscpy(commandLineCString, commandLine.c_str());
177
+
178
auto result = CreateProcessW(
179
pszImageName,
- (LPWSTR)pszCmdLine,
180
+ commandLineCString,
181
psaProcess,
182
psaThread,
183
fInheritHandles,
0 commit comments