XUser: finding an unknown local id fails with ERROR_NOT_FOUND #2073
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!2073
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2073/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?
@0xkn0wh3r3 on GitHub · 2026-11-25 04:22 UTC · original
0xkn0wh3r3:hle/xuser-find-local-id-not-found→main· +26 −1 · 1 files · 1 commits · closed without mergingThe problem
A title that looks up a local id with no user gets the wrong error code back.
XUserFindUserByLocalIddocumentsHRESULT_FROM_WIN32(ERROR_NOT_FOUND)(0x80070490) for a local id with no user. VIctory'sfind_by_local_idreturned the XUser errorE_GAMEUSER_USER_NOT_FOUND(0x89245104,USER_NOT_FOUND) instead, through the sharedfoundhelper.Found by the conformance title in #2057, which lists this check as a known divergence.
The fix
find_by_local_idreturns the newNOT_FOUND(0x80070490) for an unknown local id, and the user's handle for the known one as before.XUserFindUserByIdnames no specific error, so it keeps the XUser one (USER_NOT_FOUND).Testing
modules::xuser::tests::an_unknown_local_id_is_not_found: the known local id finds the user; an unknown one returnsNOT_FOUNDand leaves the handle null;XUserFindUserByIdwith an unknown id still returnsUSER_NOT_FOUND.cargo test -p victory-hle: all pass.cargo clippy -p victory-hle --all-targets: clean.Related
#2057 lists this check on its test's
KNOWNlist. Whichever of the two merges second takes the entry off that list (a listed check that passes fails that test).@Marvisak on GitHub · 2026-11-25 10:27 UTC · original
Automated triage for the maintainers.
find_by_local_idincrates/victory-hle/src/modules/xuser.rsnow returnsHRESULT_FROM_WIN32(ERROR_NOT_FOUND)(0x80070490) for an unknown local id, which the PR cites from the publicXUserFindUserByLocalIdreference. Before, the sharedfoundhelper returnedUSER_NOT_FOUND.find_by_idkeepsUSER_NOT_FOUND. The test covers the known id, an unknown id (the handle stays null) and the unchanged by-id path. The change is small and follows the repo rules.CI: no check runs have been reported for this head. Whichever of this PR and #2057 merges second must drop the entry from #2057's
KNOWNlist.Generated by Claude Code
@Marvisak on GitHub · 2026-11-25 22:05 UTC · original
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because the console runtime does not return that code. The public page lists
HRESULT_FROM_WIN32(ERROR_NOT_FOUND), but on a console both find functions return0x89245104when no user matches, which is whatmainreturns. The title's only caller ignores the HRESULT in any case.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed