HLE: an unknown gamertag component is an invalid argument #2072
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!2072
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2072"
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?
@0xkn0wh3r3 on GitHub · 2026-11-25 04:22 UTC · original
0xkn0wh3r3:hle/xuser-gamertag-invalid-component→main· +23 −2 · 1 files · 1 commits · openThe problem
XUserGetGamertagdocumentsE_INVALIDARGfor an invalidgamertagComponent. The valid values (XUserGamertagComponent) are Classic 0, Modern 1, ModernSuffix 2 and UniqueModern 3.VIctory's
get_gamertag(crates/victory-hle/src/modules/xuser.rs) answered any value other than the modern suffix with the gamertag, so a title passing a bad component got a name back instead of an error.The fix
E_INVALIDARG.Testing
an_unknown_gamertag_component_is_an_invalid_argument: asks for components 4, 5 andu32::MAXthrough both slots that serve the call, and checks each returnsE_INVALIDARG.cargo test -p victory-hle: all pass.cargo clippy -p victory-hle --all-targets: clean.Not covered / Related
KNOWNlist (a listed check that passes fails that test).@Marvisak on GitHub · 2026-11-25 10:27 UTC · original · edited 2026-11-26 01:20 UTC
Automated triage for the maintainers.
Merge candidate (a recommendation to look, not an approval). The new head is the same change rebased onto current
main.get_gamertagincrates/victory-hle/src/modules/xuser.rsreturnsE_INVALIDARGfor a component other than 0-3, and components 0-3 behave as before. The public reference forXUserGetGamertagsupports this, and the conformance title in #2057 found the difference. The new test checks both vtable slots that serve the call (GAMERTAG_OBJECT0x18 andOBJECT0x78).The branch merges cleanly. CI:
checkpassing. Whichever of this PR and #2057 merges second must drop the entry from #2057'sKNOWNlist.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.