summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tty/windows/conpty.rs2
1 files changed, 1 insertions, 1 deletions
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;