[PR #14653] [MERGED] Check for null lParam in WM_SETTINGSCHANGE #30187

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14653
Author: @jboelter
Created: 1/8/2023
Status: ✅ Merged
Merged: 1/10/2023
Merged by: @undefined

Base: main ← Head: bug/14652-null-lparam


📝 Commits (1)

📊 Changes

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

View changed files

📝 src/cascadia/WindowsTerminal/IslandWindow.cpp (+1 -1)

📄 Description

Fix access violation on lParam when constructing wstring.

Per the WM_SETTINGSCHANGE docs, NULL is a valid value for lParam. A
null lParam was observed when using the 'Switch User' feature of Windows
while developing the Terminal app.

Validation Steps Performed

Reproduced the scenario w/ the check in place and verified no crash.

Closes #14652


🔄 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/14653 **Author:** [@jboelter](https://github.com/jboelter) **Created:** 1/8/2023 **Status:** ✅ Merged **Merged:** 1/10/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `bug/14652-null-lparam` --- ### 📝 Commits (1) - [`1023744`](https://github.com/microsoft/terminal/commit/10237441144a24d2828fb89dc7af519551381286) Check for null lParam; Fixes #14652 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/IslandWindow.cpp` (+1 -1) </details> ### 📄 Description Fix access violation on lParam when constructing wstring. Per the [WM_SETTINGSCHANGE docs], NULL is a valid value for lParam. A null lParam was observed when using the 'Switch User' feature of Windows while developing the Terminal app. ## Validation Steps Performed Reproduced the scenario w/ the check in place and verified no crash. Closes #14652 [WM_SETTINGSCHANGE docs]: https://learn.microsoft.com/en-us/windows/win32/winmsg/wm-settingchange --- <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:39:13 +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#30187