mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
Support argv[0]
munging on Windows
This commit is contained in:
parent
5ed84e04f8
commit
10d1c6da18
5 changed files with 21 additions and 25 deletions
|
@ -84,7 +84,7 @@ textwindows int ntspawn(
|
|||
sizeof(*block), 0)) &&
|
||||
(block = MapViewOfFileEx(handle, kNtFileMapRead | kNtFileMapWrite, 0, 0,
|
||||
sizeof(*block), 0)) &&
|
||||
mkntcmdline(block->cmdline, prog, argv) != -1 &&
|
||||
mkntcmdline(block->cmdline, argv) != -1 &&
|
||||
mkntenvblock(block->envvars, envp, extravar, block->buf) != -1 &&
|
||||
CreateProcess(prog16, block->cmdline, opt_lpProcessAttributes,
|
||||
opt_lpThreadAttributes, bInheritHandles,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue