XGameRuntime: XUser COM lookup slots accept the other ID namespace #2914

Closed
opened 2026-11-26 23:00:21 +00:00 by CryingLaughing · 1 comment
CryingLaughing commented 2026-11-26 23:00:21 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by CryingLaughing on 2026-11-26T23:00:21Z.


Reproduction

Query the XUser runtime COM interface on main 8b957bec6f82495aec940944c6bf47faa02db590 and call slots #10 (XUserFindUserByLocalId) and #12 (XUserFindUserById) with distinct synthetic local and Xbox user IDs.

Each slot succeeds and returns a handle for its own identifier as expected. Swapping the identifiers also returns S_OK and a handle from both slots. The corresponding direct XCL entry points already check their own identifier. The Microsoft XUser documentation describes the two identifier scopes.

Main with the test overlay reported 0 passed, 1 failed and 0 ignored. A candidate that dispatches each slot to its corresponding direct entry point reported 1 passed, 0 failed and 0 ignored, with the swapped calls returning E_NOT_FOUND and no handle. Zero capability skips. This was a CPU-only synthetic fixture on Windows 11 25H2 build 26200.9974, Core i5-13600K, Rust 1.100.0 x64 MSVC, debug.

cargo test -p xcl --lib --locked --offline -j 2 --no-run --message-format=json
<xcl library test executable> --exact hle::xgameruntime::api::tests::xuser_lookup_slots_keep_id_namespaces_separate --test-threads=1 --nocapture
<!-- greyfinch-sync:ivall/xcl:issue:6636474591 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2914). Originally posted by [CryingLaughing](https://github.com/CryingLaughing) on 2026-11-26T23:00:21Z. --- ### Reproduction Query the XUser runtime COM interface on main `8b957bec6f82495aec940944c6bf47faa02db590` and call slots #10 (`XUserFindUserByLocalId`) and #12 (`XUserFindUserById`) with distinct synthetic local and Xbox user IDs. Each slot succeeds and returns a handle for its own identifier as expected. Swapping the identifiers also returns `S_OK` and a handle from both slots. The corresponding direct XCL entry points already check their own identifier. The [Microsoft XUser documentation](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/common/user/player-identity-xuser?view=gdk-2610) describes the two identifier scopes. Main with the test overlay reported 0 passed, 1 failed and 0 ignored. A candidate that dispatches each slot to its corresponding direct entry point reported 1 passed, 0 failed and 0 ignored, with the swapped calls returning `E_NOT_FOUND` and no handle. Zero capability skips. This was a CPU-only synthetic fixture on Windows 11 25H2 build 26200.9974, Core i5-13600K, Rust 1.100.0 x64 MSVC, debug. ```text cargo test -p xcl --lib --locked --offline -j 2 --no-run --message-format=json <xcl library test executable> --exact hle::xgameruntime::api::tests::xuser_lookup_slots_keep_id_namespaces_separate --test-threads=1 --nocapture ```
kotekompotek commented 2026-11-27 04:58:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by kotekompotek on 2026-11-27T04:58:07Z.


Fixed in #2957 — byte-identical revival of the withdrawn #2922 (authorship preserved), freshly verified: regression test fails without the fix with this issue's exact signature and passes with it.

<!-- greyfinch-sync:ivall/xcl:comment:7210239853 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2914#issuecomment-7210239853). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-27T04:58:07Z. --- Fixed in #2957 — byte-identical revival of the withdrawn #2922 (authorship preserved), freshly verified: regression test fails without the fix with this issue's exact signature and passes with it.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#2914
No description provided.