mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1149] xgameruntime: test the XErrorReport export and count it among the looked-up names (OLD-9914) #1184
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1184
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1149
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9914-xerror-export-test📝 Commits (1)
5b073fbxgameruntime: test the XErrorReport export and count it among the looked-up names📊 Changes
2 files changed (+12 additions, -3 deletions)
View changed files
📝
runtime/shims/xgameruntime.cpp(+2 -1)📝
runtime/test/xgameruntime_test.cpp(+10 -2)📄 Description
Claimed in the coordination issue as: OLD-9914 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141782281)
What and why
Carries forward
old-pr/9914(draft #182, original commit authorSunkiller-qcpreserved; indexed in #17), rebased cleanly onto currentmain.Adds regression coverage for the
XErrorReportDLL export thatXGameRuntimeInitializelooks up viaGetProcAddress:GetProcAddress(xgameruntime.dll, "XErrorReport")resolves to the shim table's function alongside the fivexgameruntime.libthunk entry points (6 total).WINAPIsignatureXErrorReport(HRESULT, const char*)(nothis) while theXErrorImplcallback is installed and verifies that the callback receives theHRESULTand message and returnsS_OK.runtime/shims/xgameruntime.cppandruntime/test/xgameruntime_test.cpp.Tested
xgameruntime_test.exenatively on Windows 11 with MSVC (/std:c++20 /EHsc /W4 /permissive- /utf-8 /O2):xgameruntime_test: OK (159 checks).python -I scripts/check_no_game_data.py runtime/shims/xgameruntime.cpp runtime/test/xgameruntime_test.cpp: exit 0 (no game data).GPUs tested: n/a (CPU/OS runtime shim test; built and tested on Windows 11 Pro 64-bit, MSVC VS 18)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a —xgameruntimetest)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.