[PR #5373] wpf: fix two crashes and some fallout from the new key event handler #26294

Closed
opened 2026-01-31 09:15:10 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/5373

State: closed
Merged: Yes


Summary of the Pull Request

This pull request fixes a crash on scrolling down (overflow exception cramming the signed short upper WORD of the wParam into an actual signed short on x64) and a crash on key input caused by improper use of Marshal.ReadByte on an integer (instead of a memory address).

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Manually did those things on x64.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/5373 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This pull request fixes a crash on scrolling down (overflow exception cramming the signed short upper WORD of the wParam into an actual signed short on x64) and a crash on key input caused by improper use of `Marshal.ReadByte` on an integer (instead of a memory address). ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed Manually did those things on x64.
claunia added the pull-request label 2026-01-31 09:15:10 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26294