[PR #12698] [MERGED] Fix exception spam if UIA is running #29180

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12698
Author: @lhecker
Created: 3/15/2022
Status: Merged
Merged: 3/16/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/uia-exception


📝 Commits (1)

  • 807731c Fix exception spam if UIA is running

📊 Changes

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

View changed files

📝 src/renderer/uia/UiaRenderer.cpp (+2 -7)

📄 Description

std::basic_string_view::substr throws an exception if the first argument
(offset) is out of range. If UIA is running, this creates a lot of exceptions
and associated log output. This trivial change takes care of that.


🔄 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/12698 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 3/15/2022 **Status:** ✅ Merged **Merged:** 3/16/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/uia-exception` --- ### 📝 Commits (1) - [`807731c`](https://github.com/microsoft/terminal/commit/807731c3f0800acaa5ddd933ab78c35b10039d46) Fix exception spam if UIA is running ### 📊 Changes **1 file changed** (+2 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/uia/UiaRenderer.cpp` (+2 -7) </details> ### 📄 Description `std::basic_string_view::substr` throws an exception if the first argument (offset) is out of range. If UIA is running, this creates _a lot_ of exceptions and associated log output. This trivial change takes care of that. --- <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:33:18 +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#29180