mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 07:11:05 -06:00
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:
committed by
Brad King
parent
3887390a37
commit
4faaa079e3
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user