Commit fca5ad3a authored by Martin Storsjö's avatar Martin Storsjö
Browse files

Process: Fix execute error handling re working dir on windows

This should help fix cmake issue 21439.
parent a72d59e1
......@@ -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. */
......
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