Skip to content

Fix dism resources to work on Windows arm64#1468

Open
SteveL-MSFT wants to merge 2 commits intoPowerShell:mainfrom
SteveL-MSFT:dism-arm64
Open

Fix dism resources to work on Windows arm64#1468
SteveL-MSFT wants to merge 2 commits intoPowerShell:mainfrom
SteveL-MSFT:dism-arm64

Conversation

@SteveL-MSFT
Copy link
Copy Markdown
Member

@SteveL-MSFT SteveL-MSFT commented Apr 7, 2026

PR Summary

  • The use of packed(4) worked on x64, but fails on arm64. Solution is to just use packed to align correctly.
  • Move check for build tools on Windows above installer tree-sitter since compiling tree-sitter requires them

Validated on a arm64 VM

Copilot AI review requested due to automatic review settings April 7, 2026 22:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates DISM FFI struct packing so the returned DISM resource buffers are interpreted correctly on Windows arm64.

Changes:

  • Replaced #[repr(C, packed(4))] with #[repr(C, packed)] for DISM feature/capability structs to avoid arm64 packing/alignment issues.

@SteveL-MSFT SteveL-MSFT added this to the 3.2-Consider milestone Apr 7, 2026
@SteveL-MSFT SteveL-MSFT requested a review from tgauth April 8, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants