Merge branch 'upstream-KWSys' into update-kwsys

# By KWSys Upstream
* upstream-KWSys:
  KWSys 2021-01-25 (10e36d47)
This commit is contained in:
Brad King
2021-01-25 10:06:13 -05:00

View File

@@ -962,7 +962,10 @@ void kwsysProcess_Execute(kwsysProcess* cp)
kwsysProcessCleanup(cp, GetLastError());
return;
}
SetCurrentDirectoryW(cp->WorkingDirectory);
if (!SetCurrentDirectoryW(cp->WorkingDirectory)) {
kwsysProcessCleanup(cp, GetLastError());
return;
}
}
/* Setup the stdin pipe for the first process. */