lua: subprocess: use macros for SetHandleInformation

Apparently both parameters refer to the same set of flags (the first is
a mask for which flags to set.)
This commit is contained in:
James Ross-Gowan 2014-11-22 16:04:59 +11:00
parent d2848daebb
commit 060bf43d02
1 changed files with 2 additions and 1 deletions

View File

@ -1397,7 +1397,8 @@ static int subprocess(char **args, struct mp_cancel *cancel, void *ctx,
goto done;
if (create_overlapped_pipe(&pipes[i].read, &pipes[i].write))
goto done;
if (!SetHandleInformation(pipes[i].write, HANDLE_FLAG_INHERIT, 1))
if (!SetHandleInformation(pipes[i].write, HANDLE_FLAG_INHERIT,
HANDLE_FLAG_INHERIT))
goto done;
}