{
ss << " \"" << EscapeShellArg(arg) << "\"";
}
- std::string cmdString = ss.str();
m_startupReady = false;
m_clrPath.clear();
LPVOID lpEnvironment = nullptr; // as current
LPCWSTR lpCurrentDirectory = nullptr; // as current
HANDLE resumeHandle;
- IfFailRet(CreateProcessForLaunch(const_cast<LPWSTR>(to_utf16(cmdString).c_str()), bSuspendProcess, lpEnvironment, lpCurrentDirectory, &m_processId, &resumeHandle));
+ IfFailRet(CreateProcessForLaunch(const_cast<LPWSTR>(to_utf16(ss.str()).c_str()), bSuspendProcess, lpEnvironment, lpCurrentDirectory, &m_processId, &resumeHandle));
IfFailRet(RegisterForRuntimeStartup(m_processId, ManagedDebugger::StartupCallback, this, &m_unregisterToken));