XStore: a store id without an installed package is an invalid argument #335
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!335
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/335/head"
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?
@marquezinii on GitHub · 2026-11-24 02:22 UTC · original
marquezinii:fix/store-package-identifier-error→main· +15 −3 · 1 files · 1 commits · merged 2026-11-25 00:08 UTCXStoreQueryPackageIdentifier(slot 0x208) returnedxpackage::NO_PACKAGE(0x89245208) for a store id that has no installed package. The GDK reference lists one error for this function:E_INVALIDARG(0x80070057), "There is no installed package corresponding to the Store ID". 0x89245208 is the XPackage functions' code, so a title that checks for the documented value would not recognise the failure.The fallback arm now returns
E_INVALIDARG. The XPackage functions keepNO_PACKAGE.Tested with a new unit test that calls slot 0x208 with an unknown store id; it failed before the change (0x89245208) and passes now.
cargo test -p victory-hle(87 + 1 passed), clippy and rustfmt are clean, and the policy hook passed. No game data used, and not tried against a title run.https://learn.microsoft.com/gaming/gdk/docs/reference/system/xstore/functions/xstorequerypackageidentifier
@jeremygold02 on GitHub · 2026-11-24 04:21 UTC · original
Tested PR #335 at head
e3bef089855cc4b463a0ce7e1a70f6abf7c859e5(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged ate3bef089855cc4b463a0ce7e1a70f6abf7c859e5.cargo test --locked -p victory-hle a_store_id_without_a_package_is_an_invalid_argument— passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 86 filtered out; finished in 0.00s ); cases: modules::xstore::tests::a_store_id_without_a_package_is_an_invalid_argument.Behavior covered: Checks XStore returns invalid argument for a store ID without an installed package.
Code: crates/victory-hle/src/modules/xstore.rs