Skip to content

Commit 0a51241

Browse files
authored
ntspawn: fix initializing NtStartupInfoEx (#1190)
1 parent c68f659 commit 0a51241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/calls/ntspawn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ static textwindows int ntspawn2(struct NtSpawnArgs *a, struct SpawnBlock *sb) {
177177
if (ok) {
178178
struct NtStartupInfoEx info = {
179179
.StartupInfo = *a->lpStartupInfo,
180-
.StartupInfo.cb = sizeof(info),
181180
.lpAttributeList = alist,
182181
};
182+
info.StartupInfo.cb = sizeof(info);
183183
if (ok) {
184184
if (CreateProcess(sb->path, sb->cmdline, 0, 0, true,
185185
a->dwCreationFlags | kNtCreateUnicodeEnvironment |

0 commit comments

Comments
 (0)