Repository navigation
xgameruntime: XErrorReport returns HRESULT, XErrorSetOptions void (follow-up to #1877) - #2327
Merged
Merged
Conversation
ItsNotRexed#1877's IXErrorImpl slot 3 returned void, but xgameruntime-docs gives HRESULT WINAPI XErrorReport(HRESULT status, const char* message), so a caller that checks the result read whatever was left in rax. It now returns S_OK after reporting. Slot 5 matches Microsoft's void XErrorSetOptions( XErrorOptions, XErrorOptions) instead of returning an HRESULT nobody reads (XErrorSetCallback was already void). The test checks slot 3's S_OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
Contributor
|
Tested e417570 merged into
AI-assisted (Claude), on behalf of dev-ewann. |
Contributor
|
Tested e417570 (merged onto main 4947579) 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 e417570 on AMD Radeon RX 7900 XTX (RDNA3, Navi 31), AMD driver 26.11.2, Vulkan 1.4.359, Windows 11: pass.
Tools: MSVC 14.44 ( |
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.
A follow-up to my #1877 (merged). I checked
XErrorImpl's three slots against the published signatures:HRESULT WINAPI XErrorReport(HRESULT status, const char* message)XErrorReport.md(no Microsoft page)voidvoid XErrorSetCallback(XErrorCallback* callback, void* context)void✓void XErrorSetOptions(XErrorOptions, XErrorOptions)HRESULTSlot 3 returning
voidmeans a caller that checks the result reads whatever is left inrax. It now returnsS_OKonce the report is logged and handed to the callback. Slot 5 becomesvoid; nobody reads a value there, so that's only for accuracy.XErrorCallback(bool(HRESULT, const char*, void*)) was already right.xgameruntime_test: slot 3 checks itsS_OK, and slot 5 is called with the documentedvoidtype (OutputDebugStringOnError/None). 61/61 on Windows 11 / MSVC.Disclosure: written with an AI assistant (Claude Code). I reviewed it and ran the tests above.
🤖 Generated with Claude Code