fix(loader): share forwarder resolution with dynamic GetProcAddress #234
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!234
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-234"
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?
@brainbudt on GitHub · 2026-11-27 02:18 UTC · original
brainbudt:fix/loader-getprocaddress-forwarded-exports→main· +103 −59 · 9 files · 1 commits · merged 2026-11-27 02:33 UTCSummary
When a title DLL exported a symbol forwarded to a host or HLE DLL (for example
KERNEL32.SetLastError), static import binding resolved the forwarded target through the launch resolver, while dynamicGetProcAddressonly looked up the target DLL in the title-DLL registry and returnedNULL.Changes
TitleDll::resolve_exportand the launchNATIVE_TITLE_RESOLVER(preserving--strict/ host policy) between static import binding and dynamicGetProcAddress.NULLwithERROR_PROC_NOT_FOUND.docs/native-host.md.Verification
cargo test -j4 -p victory-loader(16 passed, 3 ignored)cargo test -p victory-hle --target x86_64-apple-darwin --lib modules::kernel(2 passed)cargo clippy -j4 -p victory-loader -p victory-hle --all-targets --target x86_64-pc-windows-gnullvm -- -D warningscargo xtask policy@LakshanSivakumar on GitHub · 2026-11-27 02:33 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!