Commit 4e279fe
committed
Cygwin: pty: Add missing DeleteProcThreadAttributeList() call
Currently, the cleanup path of setup_pseudoconsole() is missing
DeleteProcThreadAttributeList() call, while microsoft's document
requires that and the normal path has it.
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-initializeprocthreadattributelist
This patch adds DeleteProcThreadAttributeList() call to the cleanup
path.
Fixes: bb42852 ("Cygwin: pty: Implement new pseudo console support.")
Suggested-by: Johannes Schindelin <[email protected]>
Signed-off-by: Takashi Yano <[email protected]>
Reviewed-by: Corinna Vinschen <[email protected]>
(cherry picked from commit 11a835f)1 parent a8a61d8 commit 4e279fe
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3530 | 3530 | | |
3531 | 3531 | | |
3532 | 3532 | | |
3533 | | - | |
| 3533 | + | |
3534 | 3534 | | |
3535 | 3535 | | |
3536 | 3536 | | |
| |||
3699 | 3699 | | |
3700 | 3700 | | |
3701 | 3701 | | |
| 3702 | + | |
| 3703 | + | |
3702 | 3704 | | |
3703 | 3705 | | |
3704 | 3706 | | |
| |||
0 commit comments