Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement cwd support in Win32 process. Closes #540

  • Loading branch information...
commit 9d027aac12f870c4f52eb680938f1a716a8c0356 1 parent 2a60033
@nddrylliog nddrylliog authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sdk/os/native/ProcessWin32.ooc
View
4 sdk/os/native/ProcessWin32.ooc
@@ -75,13 +75,13 @@ ProcessWin32: class extends Process {
// Start the child process.
if(!CreateProcess(
null, // No module name (use command line)
- cmdLine toCString(), // Command line
+ cmdLine toCString(), // Command line
null, // Process handle not inheritable
null, // Thread handle not inheritable
true, // Set handle inheritance to true
0, // No creation flags
null, // Use parent's environment block
- null, // Use parent's starting directory
+ cwd ? cwd toCString() : null, // Use custom cwd if we have one
si&, // Pointer to STARTUPINFO structure
pi& // Pointer to PROCESS_INFORMATION structure
)) {
Please sign in to comment.
Something went wrong with that request. Please try again.