fix: resolve shim DLLs ahead of System32 for child-process boot #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!1
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1/head"
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?
@AutoComput on GitHub · 2026-11-21 09:53 UTC · original
AutoComput:fix/child-boot-shim-search-order→main· +11 −3 · 2 files · 1 commits · merged 2026-11-22 09:58 UTCTL;DR
Without
--in-processthe guest only finds the shim DLLs throughPATH, which Windows searches after System32. On a machine with its ownC:\Windows\System32\xgameruntime.dllthe guest loads that one and dies with0xC0000139.This sets the shim directory as the DLL directory around
CreateProcessA. It gets searched before System32 and the child inherits it, so nothing needs copying into the package. In-process boot is untouched.test_boot_hello_scarlettandtest_boot_rt_showcasepass now, 22/23 on Release (MSVC 2022, Windows 11 26300). Didn't run Debug. README limitation updated, status files not regenerated.@lukaskliuc on GitHub · 2026-11-21 13:17 UTC · original
Verified locally on Windows 11 build 26200.9974 with MSVC 19.29 and the Windows
System32\xgameruntime.dllpresent. I ran all 23 synthetic CTest tests in Debug and Release.main(bda18b4)2b28103)ca58dd6)16ebcc3, source change)On
main, both boot tests exited with0xC0000139. With #1, both passed on the RTX 2080. Adding #9 also passed both on WARP, with a byte-identicalrt_showcaseframe. Adding #2 fixed the remaining guest texture failure. The README edits in #1 and #2 overlap, so the combined test used #1's README.