ucrt: serve vcruntime140's memory and string imports #289
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/289"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T08:56:16Z.
A title with no vcruntime140.dll of its own got the ucrt's implementations only for ucrtbase and api-ms-win-crt-: its VCRUNTIME140 imports of memset and memcpy fell through to the host's kernel table, which has none of them, and came back as no-op stubs returning 0 -- the failed load of #104 called both. vcruntime140 is now served from the ucrt when the title ships no DLL of that name (the same gate the kernel table uses), and the names the ucrt does not have still fall through to the kernel table and the exception functions.
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documentedImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T10:46:19Z.
Thank you. Merged.
I ran these five together on my Mac before merging (#101, #267, #288, #289, #291 on main, M5 Pro 48 GB, Series S, warm cache, three runs): two runs stayed in the world until the time limit (139 s and 202 s there, about 2 fps, no failed command buffer, no fault); one ended at the start of the world with a title fault I had not seen before (first chance at image+0x4fafef8, a read of 0x30000065c), with no GPU error before it. I could not tie that one to any of the five. If you see it, please say so.