[PR #4128] [MERGED] Correct improper usage of THROW_IF_NULL_ALLOC #25649

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4128
Author: @skyline75489
Created: 1/7/2020
Status: Merged
Merged: 1/7/2020
Merged by: @DHowett-MSFT

Base: masterHead: fix/throw_if_null_alloc


📝 Commits (1)

  • bb1a166 Correct improper usage of THROW_IF_NULL_ALLOC

📊 Changes

10 files changed (+12 additions, -12 deletions)

View changed files

📝 src/host/PtySignalInputThread.cpp (+1 -1)
📝 src/host/screenInfo.cpp (+2 -2)
📝 src/interactivity/win32/Clipboard.cpp (+1 -1)
📝 src/renderer/base/renderer.cpp (+1 -1)
📝 src/renderer/dx/DxRenderer.cpp (+1 -1)
📝 src/terminal/adapter/InteractDispatch.cpp (+1 -1)
📝 src/terminal/adapter/adaptDispatch.cpp (+2 -2)
📝 src/terminal/parser/InputStateMachineEngine.cpp (+1 -1)
📝 src/terminal/parser/OutputStateMachineEngine.cpp (+1 -1)
📝 src/tools/vtpipeterm/VtConsole.cpp (+1 -1)

📄 Description

Summary of the Pull Request

FIx incorrect usage of THROW_IF_NULL_ALLOC which will throw E_OUTOFMEMORY unintentionally.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Build and run it.


🔄 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/4128 **Author:** [@skyline75489](https://github.com/skyline75489) **Created:** 1/7/2020 **Status:** ✅ Merged **Merged:** 1/7/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `fix/throw_if_null_alloc` --- ### 📝 Commits (1) - [`bb1a166`](https://github.com/microsoft/terminal/commit/bb1a16681f98f09c47f8f8a861b63039944cc7e3) Correct improper usage of THROW_IF_NULL_ALLOC ### 📊 Changes **10 files changed** (+12 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/host/PtySignalInputThread.cpp` (+1 -1) 📝 `src/host/screenInfo.cpp` (+2 -2) 📝 `src/interactivity/win32/Clipboard.cpp` (+1 -1) 📝 `src/renderer/base/renderer.cpp` (+1 -1) 📝 `src/renderer/dx/DxRenderer.cpp` (+1 -1) 📝 `src/terminal/adapter/InteractDispatch.cpp` (+1 -1) 📝 `src/terminal/adapter/adaptDispatch.cpp` (+2 -2) 📝 `src/terminal/parser/InputStateMachineEngine.cpp` (+1 -1) 📝 `src/terminal/parser/OutputStateMachineEngine.cpp` (+1 -1) 📝 `src/tools/vtpipeterm/VtConsole.cpp` (+1 -1) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request FIx incorrect usage of THROW_IF_NULL_ALLOC which will throw E_OUTOFMEMORY unintentionally. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [X] Closes #4099 * [X] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Build and run it. --- <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:10:53 +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#25649