Skip to content

Fix windows crate 0.58 API mismatch in VM detection#166

Merged
jgowdy-godaddy merged 1 commit into
mainfrom
feat/improve-windows-vm-detection
May 22, 2026
Merged

Fix windows crate 0.58 API mismatch in VM detection#166
jgowdy-godaddy merged 1 commit into
mainfrom
feat/improve-windows-vm-detection

Conversation

@jgowdy-godaddy
Copy link
Copy Markdown
Contributor

Summary

  • Fix RegOpenKeyExW uloptions parameter: Some(0)0 for windows crate 0.58 compatibility
  • Includes VM guest services and display adapter detection from the failed v0.1.92 build

The prior commit (30990e0) was included in a squash merge that created a different commit hash on main, so it shows as new here, but the API fix in 05b4773 is the only net-new change vs what's on main.

Test plan

  • cargo clippy --workspace --all-targets -- -D warnings passes
  • cargo test --workspace --all-targets passes
  • Windows CI build should now succeed (was failing on Some(0) type mismatch)

The windows crate 0.58 takes u32 for the uloptions parameter, not
Option<u32> (which is the 0.62 API). This broke the CI build.
@jgowdy-godaddy jgowdy-godaddy force-pushed the feat/improve-windows-vm-detection branch from 05b4773 to 7080733 Compare May 22, 2026 01:28
@jgowdy-godaddy jgowdy-godaddy merged commit 4c65bd3 into main May 22, 2026
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.

1 participant