Commit 10e36d47 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'win32-execute-dir'


 Process: Fix execute error handling re working dir on windows
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !202
parents a72d59e1 fca5ad3a
...@@ -962,7 +962,10 @@ void kwsysProcess_Execute(kwsysProcess* cp) ...@@ -962,7 +962,10 @@ void kwsysProcess_Execute(kwsysProcess* cp)
kwsysProcessCleanup(cp, GetLastError()); kwsysProcessCleanup(cp, GetLastError());
return; return;
} }
SetCurrentDirectoryW(cp->WorkingDirectory); if (!SetCurrentDirectoryW(cp->WorkingDirectory)) {
kwsysProcessCleanup(cp, GetLastError());
} }
/* Setup the stdin pipe for the first process. */ /* Setup the stdin pipe for the first process. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment