Skip to content

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Jul 19, 2025

Fixes #5590

Issue

Due to internal security requirements, we moved to a vcpkg for detours. Due to it coming indirectly through UndockedRegFreeWinRT, we didn't have the exact commit. Thus, we used the latest (only) vcpkg version available.

This caused crashes in the PowerShell module on ARM64, as the only detours release is prior to better support for ARM64. Our prerelease automated validations did not catch it, as we don't have ARM64 runners. We will investigate adding them to prevent a future issue like this.

Change

Starting with the time that the UndockedRegFreeWinRT change was introduced and working backward through commits, I found the equivalent one (only whitespace changes are present, probably due to auto-formatting). This change uses the existing overlay infrastructure to update the detours port to that commit.

Validation

I was able to repro on an ARM64 device. Building the dll in the appropriate configuration with this change was successful in resolving the issue in the module.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS merged commit 41fc5c8 into microsoft:master Jul 21, 2025
9 checks passed
@JohnMcPMS JohnMcPMS deleted the detours-patch branch July 21, 2025 17:28
JohnMcPMS added a commit to JohnMcPMS/winget-cli that referenced this pull request Jul 21, 2025
## Change
Starting with the time that the UndockedRegFreeWinRT change was
introduced and working backward through commits, I found the equivalent
one (only whitespace changes are present, probably due to
auto-formatting). This change uses the existing overlay infrastructure
to update the detours port to that commit.
JohnMcPMS added a commit that referenced this pull request Jul 21, 2025
Cherry pick #5601

## Change
Starting with the time that the UndockedRegFreeWinRT change was
introduced and working backward through commits, I found the equivalent
one (only whitespace changes are present, probably due to
auto-formatting). This change uses the existing overlay infrastructure
to update the detours port to that commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using winget powershell modules on Arm64 machines throws SEHException (0x80004005)
2 participants