From 3a9b8e65dddd4477869feda248d09bf2ca5aa5d0 Mon Sep 17 00:00:00 2001 From: Alex Purdy Date: Thu, 14 Mar 2019 13:27:18 -0700 Subject: Fix invalid --working-dir string ptr for ConPTY --- src/tty/windows/conpty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tty') diff --git a/src/tty/windows/conpty.rs b/src/tty/windows/conpty.rs index 34fcee7c..6c74df7f 100644 --- a/src/tty/windows/conpty.rs +++ b/src/tty/windows/conpty.rs @@ -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; -- cgit v1.2.3-54-g00ecf