Fix invalid --working-dir string ptr for ConPTY

This commit is contained in:
Alex Purdy authored and Christian Duerr committed 2019-03-14 20:27:18 +00:00
1 parent 0f96a62218
commit 3a9b8e65dd
1 file changed
+1 -1
+1 -1
View File
@@ -234,7 +234,7 @@ pub fn new<'a>(
false as i32,
EXTENDED_STARTUPINFO_PRESENT,
ptr::null_mut(),
cwd.map_or_else(ptr::null, |s| s.as_ptr()),
cwd.as_ref().map_or_else(ptr::null, |s| s.as_ptr()),
&mut startup_info_ex.StartupInfo as *mut STARTUPINFOW,
&mut proc_info as *mut PROCESS_INFORMATION,
) > 0;