diff --git a/codex-rs/utils/pty/src/win/psuedocon.rs b/codex-rs/utils/pty/src/win/psuedocon.rs index ef0e9dc819..b1c72a739d 100644 --- a/codex-rs/utils/pty/src/win/psuedocon.rs +++ b/codex-rs/utils/pty/src/win/psuedocon.rs @@ -172,7 +172,7 @@ impl PsuedoCon { si.StartupInfo.hStdOutput = INVALID_HANDLE_VALUE; si.StartupInfo.hStdError = INVALID_HANDLE_VALUE; - let mut attrs = ProcThreadAttributeList::with_capacity(1)?; + let mut attrs = ProcThreadAttributeList::with_capacity(/*num_attributes*/ 1)?; attrs.set_pty(self.con)?; si.lpAttributeList = attrs.as_mut_ptr();