mirror of https://github.com/BOINC/boinc.git
client: If CreateProcess succeeds, the return value is nonzero
It is not correct to compare CreateProcess result with TRUE value. Docs say for success return value is nonzero, not only TRUE.
This commit is contained in:
parent
0310960571
commit
471114fd5a
|
@ -138,7 +138,7 @@ bool CreateWslProcess(const std::string& wsl_app, const std::string& command, HA
|
|||
|
||||
const std::string cmd = wsl_app + " " + command;
|
||||
|
||||
const bool res = (CreateProcess(NULL, (LPSTR)cmd.c_str(), NULL, NULL, TRUE, dwFlags, NULL, NULL, &si, &pi) == TRUE);
|
||||
const bool res = (CreateProcess(NULL, (LPSTR)cmd.c_str(), NULL, NULL, TRUE, dwFlags, NULL, NULL, &si, &pi) != FALSE);
|
||||
|
||||
if (res) {
|
||||
handle = pi.hProcess;
|
||||
|
|
Loading…
Reference in New Issue