Fix ConPTY panic
This commit is contained in:
parent
2b39e6bf99
commit
c901c74d01
|
@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Panic on startup when using Conpty on Windows
|
||||||
|
|
||||||
## Version 0.3.1
|
## Version 0.3.1
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -160,7 +160,7 @@ pub fn new<'a>(
|
||||||
InitializeProcThreadAttributeList(ptr::null_mut(), 1, 0, &mut size as PSIZE_T) > 0;
|
InitializeProcThreadAttributeList(ptr::null_mut(), 1, 0, &mut size as PSIZE_T) > 0;
|
||||||
|
|
||||||
// This call was expected to return false.
|
// This call was expected to return false.
|
||||||
if (!failure) {
|
if failure {
|
||||||
panic_shell_spawn();
|
panic_shell_spawn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,7 @@ pub fn new<'a>(
|
||||||
&mut size as PSIZE_T,
|
&mut size as PSIZE_T,
|
||||||
) > 0;
|
) > 0;
|
||||||
|
|
||||||
if (!success) {
|
if !success {
|
||||||
panic_shell_spawn();
|
panic_shell_spawn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,7 @@ pub fn new<'a>(
|
||||||
ptr::null_mut(),
|
ptr::null_mut(),
|
||||||
) > 0;
|
) > 0;
|
||||||
|
|
||||||
if (!success) {
|
if !success {
|
||||||
panic_shell_spawn();
|
panic_shell_spawn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ pub fn new<'a>(
|
||||||
&mut proc_info as *mut PROCESS_INFORMATION,
|
&mut proc_info as *mut PROCESS_INFORMATION,
|
||||||
) > 0;
|
) > 0;
|
||||||
|
|
||||||
if (!success) {
|
if !success {
|
||||||
panic_shell_spawn();
|
panic_shell_spawn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue