mirror of https://github.com/mpv-player/mpv
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:
parent
d2848daebb
commit
060bf43d02
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue