diff options
author | Alex Purdy <aspurdy@users.noreply.github.com> | 2019-03-14 13:27:18 -0700 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-03-14 20:27:18 +0000 |
commit | 3a9b8e65dddd4477869feda248d09bf2ca5aa5d0 (patch) | |
tree | ccda62ca76537f6191658d1bef961d12ab7f5f5c /src | |
parent | 0f96a62218cfc78b56606f0dcc334d59202edf7c (diff) | |
download | alacritty-3a9b8e65dddd4477869feda248d09bf2ca5aa5d0.tar.gz alacritty-3a9b8e65dddd4477869feda248d09bf2ca5aa5d0.zip |
Fix invalid --working-dir string ptr for ConPTY
Diffstat (limited to 'src')
-rw-r--r-- | src/tty/windows/conpty.rs | 2 |
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; |