[PR #12653] [MERGED] Fix activation context generation for conhost #29151

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12653
Author: @lhecker
Created: 3/9/2022
Status: Merged
Merged: 3/10/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/msft-38355907


📝 Commits (1)

  • acfd3a4 Fix activation context generation for conhost

📊 Changes

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

View changed files

📝 src/host/init.cpp (+5 -3)

📄 Description

This regressed in 2b202ce6, which removed ACTCTX_FLAG_RESOURCE_NAME_VALID
during CreateActCtxW under the assumption that an executable only has
one manifest. conhost has two however and we need to pick the correct one.

On OpenConsole this causes the expected ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET.

Closes MSFT:38355907


🔄 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/12653 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 3/9/2022 **Status:** ✅ Merged **Merged:** 3/10/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/msft-38355907` --- ### 📝 Commits (1) - [`acfd3a4`](https://github.com/microsoft/terminal/commit/acfd3a43c979bc32421abfa12a369b42fb7fbd54) Fix activation context generation for conhost ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/host/init.cpp` (+5 -3) </details> ### 📄 Description This regressed in 2b202ce6, which removed `ACTCTX_FLAG_RESOURCE_NAME_VALID` during `CreateActCtxW` under the assumption that an executable only has one manifest. conhost has two however and we need to pick the correct one. On OpenConsole this causes the expected `ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET`. Closes MSFT:38355907 --- <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:08 +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#29151