KWSys 2021-01-25 (10e36d47)

Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 10e36d47415840a0318331733460183152a0feb9 (master).

Upstream Shortlog
-----------------

Martin Storsjö (1):
      fca5ad3a Process: Fix execute error handling re working dir on windows
This commit is contained in:
KWSys Upstream
2021-01-25 10:05:14 -05:00
committed by Brad King
parent 3887390a37
commit 4faaa079e3

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. */