Repository navigation
Conversation
…ApiImpl libHttpClient.GDK.dll asks QueryApiImpl for XSystemImpl with IXSystemImpl5's interface id and calls slots 3-8 (thunks disassembled, no code run): three (size, buffer, used) id queries, then two pointers, one pointer and a bool: xgameruntime-docs' IXSystemImpl list (console id, Xbox Live sandbox id, app-specific device id), IXSystemImpl3's (XSystemHandleTrack, XSystemIsHandleValid) and IXSystemImpl4's (XSystemAllowFullDownloadBandwidth), IXSystemImpl2 and 5 adding no known method. Offline answers: the existing 39-byte console-id placeholder, sandbox RETAIL, a 45-byte app-specific device-id placeholder (short buffers get ERROR_INSUFFICIENT_BUFFER, null E_INVALIDARG), handle tracking accepted and never called back, a non-null handle valid, bandwidth S_OK. docs/runtime_imports.md: libHttpClient calls five classes through thunks (not only an id table, as the table said): their slot ranges, with the XSystemImpl and XPackageImpl rows. xgameruntime_test +5 checks (74). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…loadBandwidth void Checked against Microsoft's reference pages: bool XSystemIsHandleValid( XSystemHandle) and void XSystemAllowFullDownloadBandwidth(bool). Slot 7 returned an HRESULT, so S_OK (0) read as "not valid" to a conforming caller. The test calls both with the documented types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…x id needs 16 bytes Review (@Flyander): - QueryInterface accepted the class id and IXSystemImpl5 only. The IDL chain is IXSystemImpl5 : IXSystemImpl4 : IXSystemImpl3 : IXSystemImpl2 : IXSystemImpl (xgameruntime include/xsystem.idl), so every one of them is served by the same vtable. RuntimeObject now carries a null-terminated list of interface ids instead of one newer id (XNetworkingImpl's list is IXNetworkingImpl2). - XSystemGetXboxLiveSandboxId requires sandboxIdSize >= XSystemXboxLiveSandboxIdMaxBytes (16); buffers of 7-15 bytes returned S_OK. copy_id takes the API minimum. Tests: a 15-byte sandbox buffer is refused, 16 accepted; all five IXSystemImpl ids give the same object. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…XCurl asks XCurl.dll's thunks call QueryApiImpl with the class id in rcx and IXNetworkingImpl2's id (bf2346b2-...) in rdx; the object answered only for the class id, so every XCurl networking call got E_NOINTERFACE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
No game files: I did not run it against the package's |
|
Tested 94d2e3a on Windows 11, RTX 5080 (driver 616.92) and AMD Radeon iGPU gfx1036 (driver 26.10.1): AI-assisted. |
|
Tested 94d2e3a on NVIDIA RTX 5060 Ti (Blackwell), NVIDIA 621.01 (Vulkan 1.4.357), Windows 11, VS Build Tools 2022 (MSVC) + Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0: pass.
AI-assisted (Qoder): I built the full runtime with MSVC and ran ctest. |
|
Tested 94d2e3a (merged onto main 1628210) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass
AI-assisted (Claude). |
|
Tested 94d2e3a on Tiger Lake (Xe-LP) iGPU 0x9a78, driver 32.0.101.7088, Windows 11, MSVC 14.44: pass Full The PR's own area: AI-assisted (GLM, operated by the account owner). |
Depends on: #2203 (it adds the inherited-interface list that
RuntimeObjectanswers for). Follow-up to the merged XNetworkingImpl (5f5d6d1).The bug
The merged
XNetworkingImplanswersQueryInterfaceonly for its class id andIUnknown. But XCurl.dll's thunks callQueryApiImplwith the class id inrcxandIXNetworkingImpl2's id (bf2346b2-39af-4658-b5ea-44713c7e83b3) inrdx. Measured in the package's XCurl.dll, every networking thunk (e.g. at+0x5400,+0x5477,+0x5502,+0x559f,+0x562a) does:So on
maineach of XCurl's networking calls getsE_NOINTERFACE, and none of the served slots is reached. The existing tests only query with the class id as the interface id, so they didn't catch it.The fix
g_networkinglistsIXNetworkingImpl2among the interfaces it answers for. A new check asks exactly the way XCurl does.Tested
Windows 11, MSVC Release, on
main77444fa + #2203:xgameruntime_test: the new check passes. Negative control: the same test against the unfixedxgameruntime.cppgivesFAIL QueryApiImpl hands out XNetworkingImpl when asked with IXNetworkingImpl2's id.ctest -R "xgameruntime|tiny_gdk": 2/2.AI-assisted (Claude Code). Disassembly read locally, counts and addresses only, no game data.
🤖 Generated with Claude Code