From 060bf43d02e27a0aeb95cfd2d2e9ab08242f4155 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sat, 22 Nov 2014 16:04:59 +1100 Subject: 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.) --- player/lua.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3