XPackage: wire XPackageUnregisterInstallationProgressChanged returning bool #1367
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1367"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-24T17:36:58Z.
Summary
Resolves VIC-BT-034 from #1249:
xpackage.rstounregister_progress(XPackageUnregisterInstallationProgressChanged).bool (true)instead ofmissing::<10>(HRESULT), conforming to Microsoft GDK specification where unregistering a progress token returns a boolean.crates/victory-hle/src/modules/xpackage.rstesting registration at slot 0x48 and unregistration at slot 0x50.Verification
cargo test -p victory-hle: 94 tests passed, 0 failed.cargo clippy -p victory-hle --all-targets --all-features -- -D warnings: clean, 0 warnings.cargo run -p xtask -- policy: 154 files ok.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T20:15:34Z.
Review: APPROVED
Tested
62d367aon Windows 11, RTX 5070, MSVC: builds,cargo test --workspace --no-fail-fast633 passed, 0 failed (on our fork main).XPackageUnregisterInstallationProgressChanged(monitor, token, wait)returnsboolin the GDK, so the slot now has the right return type instead ofmissing's HRESULT.register_progressstores no callback (it only hands out a token), so there is nothing to remove, and answeringtruewithout waiting is correct. If registration ever starts keeping the callback, this needs to remove it and honourwait.Merged into our fork's main.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:38:41Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1274. Same slot 0x50 change as #1274.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed