diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-22 02:24:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-22 12:39:21 +0300 |
commit | ffcf1df72849711b23ff1d184df69f01826edba9 (patch) | |
tree | 51028276f4fc3d928f107b0ff4a68ed1789e4eb8 /src/utils/process.cpp | |
parent | 319d525f993b0b95205df1cd431985ce575c4049 (diff) | |
download | manaplus-ffcf1df72849711b23ff1d184df69f01826edba9.tar.gz manaplus-ffcf1df72849711b23ff1d184df69f01826edba9.tar.bz2 manaplus-ffcf1df72849711b23ff1d184df69f01826edba9.tar.xz manaplus-ffcf1df72849711b23ff1d184df69f01826edba9.zip |
Fix compilation warnings in windows builds.
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r-- | src/utils/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp index 0106c597d..2d64f3a37 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -37,7 +37,7 @@ const int timeOut = 10; #include <windows.h> -int execFile(std::string pathName, std::string name, +int execFile(std::string pathName, std::string name A_UNUSED, std::string arg1, std::string arg2, int waitTime) { if (!waitTime) @@ -53,8 +53,8 @@ int execFile(std::string pathName, std::string name, if (!arg2.empty()) args += " " + arg2; - if (CreateProcess(pathName.c_str(), (char*)args.c_str(), 0, 0, false, - CREATE_DEFAULT_ERROR_MODE, 0, 0, &siStartupInfo, + if (CreateProcess(pathName.c_str(), (char*)args.c_str(), nullptr, nullptr, + false, CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr, &siStartupInfo, &piProcessInfo) != false) { if (!WaitForSingleObject(piProcessInfo.hProcess, timeOut * 1000)) |