diff options
| author | dracbat <dracbat@users.noreply.github.com> | 2026-11-22 14:05:53 +0000 |
|---|---|---|
| committer | dracbat <dracbat@users.noreply.github.com> | 2026-11-22 14:05:53 +0000 |
| commit | 6684d836ff16aba0d8d570e6fe4ccd9ae04e02a1 (patch) | |
| tree | de437e9533fcf658ba67ba855c27583c1b63fec8 /runtime/src/main.cpp | |
| parent | 89b047cd8fab50675a43d76722a6a8a881f55dc2 (diff) | |
Runtime: serve the game's command line and ExitProcess under every import name
The UCRT's _get_narrow_winmain_command_line and _get_wide_winmain_command_line
were not shimmed, so a /MD WinMain executable got gta6rt's own command line as
lpCmdLine. GetCommandLineA/W and ExitProcess were shimmed under kernel32.dll
only, and the loader matches DLL names exactly. Imported from kernelbase.dll, or
from the API sets the umbrella libraries bind them to
(api-ms-win-core-processenvironment-l1-1-0, api-ms-win-core-processthreads-l1-1-0),
they went to the host. The package's vcomp140.dll imports ExitProcess from the
latter.
process_cmdline_test checks every name and the WinMain line.
docs/runtime_imports.md: the dry-run table regenerated at this commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions