alacritty

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 3a9b8e65dddd4477869feda248d09bf2ca5aa5d0
parent 0f96a62218cfc78b56606f0dcc334d59202edf7c
Author: Alex Purdy <aspurdy@users.noreply.github.com>
Date:   Thu, 14 Mar 2019 13:27:18 -0700

Fix invalid --working-dir string ptr for ConPTY


Diffstat:
Msrc/tty/windows/conpty.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;