Repository navigation
Port upstream #335: a store id without an installed package is an invalid argument - #48
Merged
DesertGamer merged 1 commit intoNov 26, 2026
Conversation
XStoreQueryPackageIdentifier documents E_INVALIDARG for a store id that has no installed package. We returned XPackage's 0x89245208 instead. (cherry picked from commit e3bef08)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
This ports Marvisak/VIctory#335 by marquezini. It is cherry-picked with
-x, so the commit keeps their authorship.XStoreQueryPackageIdentifier(package_identifierincrates/viport-hle/src/modules/xstore.rs) is documented to returnE_INVALIDARGfor a store id that has no installed package. VIPort returns XPackage's "could not resolve" error,0x89245208(xpackage::NO_PACKAGE), instead. A title that checks for the documented code takes the wrong branch.VIPort has the upstream merge of #335 in its history, but the change is not in the tree. It was lost in a later merge.
Conflicts.
installed_package. The port keeps that helper and changes only the code returned when it finds nothing.the_store_id_maps_to_the_installation(from d51dc42) was written against the old return value. Its twoxpackage::NO_PACKAGEexpectations becomeE_INVALIDARG. Its "nothing written" check is unchanged.a_store_id_without_a_package_is_an_invalid_argumentcomes with it.Checked
docs/asset-policy.mdbuild.rs, git hook,.cargoconfig, CI change or script (or an issue explains why)cargo test --workspacepasses (not run, see below)cargo clippy --workspace --all-targets --locked -- -D warningspasses (Windows target, run on Linux)rustfmt; I did not reformat lines I did not changeWhat I ran
cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, cross-checked from Linux on this branch: clean. So the changed and new tests type-check.Not run:
cargo test -p viport-hle, which builds only for Windows. Both tests will run in the Windows CI test step.Overlaps
None. No open PR touches
viport-hle/src/modules/xstore.rs.🤖 Generated with Claude Code