win: fix spawn() bug

This commit is contained in:
Bert Belder 2011-09-08 17:56:47 +02:00
parent 8fd1d71049
commit c2741514bc

View File

@ -1007,7 +1007,7 @@ done:
/* it's way with them. But at least make them noninheritable. */
int i;
for (i = 0; i < COUNTOF(process->child_stdio); i++) {
SetHandleInformation(child_stdio[1], HANDLE_FLAG_INHERIT, 0);
SetHandleInformation(child_stdio[i], HANDLE_FLAG_INHERIT, 0);
}
}