diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-11-22 16:04:59 +1100 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2014-11-22 18:15:11 +1100 |
commit | 060bf43d02e27a0aeb95cfd2d2e9ab08242f4155 (patch) | |
tree | 963d1cffa1130742cc347cceb404b7557889cf4d /player/lua.c | |
parent | d2848daebbe3fdb15af5813ab662bd5add8c29b9 (diff) | |
download | mpv-060bf43d02e27a0aeb95cfd2d2e9ab08242f4155.tar.bz2 mpv-060bf43d02e27a0aeb95cfd2d2e9ab08242f4155.tar.xz |
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.)
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c index 9ffd28fbaa..ba60826778 100644 --- a/player/lua.c +++ b/player/lua.c @@ -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; } |