summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2014-11-22 16:04:59 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2014-11-22 18:15:11 +1100
commit060bf43d02e27a0aeb95cfd2d2e9ab08242f4155 (patch)
tree963d1cffa1130742cc347cceb404b7557889cf4d /player/lua.c
parentd2848daebbe3fdb15af5813ab662bd5add8c29b9 (diff)
downloadmpv-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.c3
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;
}