From c67048827e5dd5a58511eabd10d9b20c8d2f3215 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Fri, 28 Nov 2014 21:17:14 +1100 Subject: subprocess-win: remove a Vista-only flag PIPE_REJECT_REMOTE_CLIENTS isn't supported on XP. It's not really needed, so remove it. Also fix error checking for CreateNamedPipe. --- osdep/subprocess-win.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'osdep') diff --git a/osdep/subprocess-win.c b/osdep/subprocess-win.c index 0f6c20126a..bdc78c939d 100644 --- a/osdep/subprocess-win.c +++ b/osdep/subprocess-win.c @@ -111,9 +111,8 @@ static int create_overlapped_pipe(HANDLE *read, HANDLE *write) // overlapped pipes, so instead, use a named pipe with a unique name *read = CreateNamedPipeW(buf, PIPE_ACCESS_INBOUND | FILE_FLAG_FIRST_PIPE_INSTANCE | FILE_FLAG_OVERLAPPED, - PIPE_TYPE_BYTE | PIPE_WAIT | PIPE_REJECT_REMOTE_CLIENTS, - 1, 0, 4096, 0, NULL); - if (!*read) + PIPE_TYPE_BYTE | PIPE_WAIT, 1, 0, 4096, 0, NULL); + if (*read == INVALID_HANDLE_VALUE) goto error; // Open the write end of the pipe as a synchronous handle -- cgit v1.2.3