XStore: a store id without an installed package is an invalid argument #335
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/335"
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 marquezinii on 2026-11-24T02:22:24Z.
XStoreQueryPackageIdentifier(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
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:21:47Z.
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
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:27:02Z.
Review: APPROVED
Tested
e3bef08on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (265 passed, 0 failed), includinga_store_id_without_a_package_is_an_invalid_argument.The GDK page lists
E_INVALIDARGas this function's only error for an uninstalled store id. Only the fallback arm ofpackage_identifierchanges, and the XPackage functions keepNO_PACKAGE.No issues found.
AI-assisted (Claude Code).