summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index b02874b0d..3a742b313 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -86,9 +86,10 @@ bool execFile(std::string pathName, std::string name A_UNUSED,
if (!arg2.empty())
args += " " + arg2;
- bool res = CreateProcess(pathName.c_str(), (char*)args.c_str(), nullptr,
- nullptr, false, CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr,
- &siStartupInfo, &piProcessInfo);
+ bool res = CreateProcess(pathName.c_str(), const_cast<char*>(
+ args.c_str()), nullptr, nullptr, false,
+ CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr, &siStartupInfo,
+ &piProcessInfo);
CloseHandle(piProcessInfo.hProcess);
CloseHandle(piProcessInfo.hThread);