mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 01:40:28 +00:00
ntspawn: fix initializing NtStartupInfoEx
This commit is contained in:
parent
c68f6599e5
commit
436015ce46
1 changed files with 1 additions and 1 deletions
|
@ -177,9 +177,9 @@ static textwindows int ntspawn2(struct NtSpawnArgs *a, struct SpawnBlock *sb) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
struct NtStartupInfoEx info = {
|
struct NtStartupInfoEx info = {
|
||||||
.StartupInfo = *a->lpStartupInfo,
|
.StartupInfo = *a->lpStartupInfo,
|
||||||
.StartupInfo.cb = sizeof(info),
|
|
||||||
.lpAttributeList = alist,
|
.lpAttributeList = alist,
|
||||||
};
|
};
|
||||||
|
info.StartupInfo.cb = sizeof(info);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
if (CreateProcess(sb->path, sb->cmdline, 0, 0, true,
|
if (CreateProcess(sb->path, sb->cmdline, 0, 0, true,
|
||||||
a->dwCreationFlags | kNtCreateUnicodeEnvironment |
|
a->dwCreationFlags | kNtCreateUnicodeEnvironment |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue