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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5373
Author: @DHowett-MSFT
Created: 4/16/2020
Status: Merged
Merged: 4/17/2020
Merged by: @undefined

Base: masterHead: dev/duhowett/wpf/crashes


📝 Commits (2)

  • 99e06ee wpf: fix incorrect use of Marshal.ReadByte in WM_KEY/CHAR
  • acf23a0 wpf: fix a crash on scrolling down

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 src/cascadia/WpfTerminalControl/TerminalContainer.cs (+3 -3)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/5373 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 4/16/2020 **Status:** ✅ Merged **Merged:** 4/17/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/duhowett/wpf/crashes` --- ### 📝 Commits (2) - [`99e06ee`](https://github.com/microsoft/terminal/commit/99e06ee65f93d95084fbd72912776523b33858fc) wpf: fix incorrect use of Marshal.ReadByte in WM_KEY/CHAR - [`acf23a0`](https://github.com/microsoft/terminal/commit/acf23a0b49de8db3eb314469d3d46bb19dd72ff4) wpf: fix a crash on scrolling down ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WpfTerminalControl/TerminalContainer.cs` (+3 -3) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:15:09 +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#26289