diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-11-28 21:17:14 +1100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-11-28 15:51:39 +0100 |
commit | d3972125a17faaa0743a6349f6250393acfbdac4 (patch) | |
tree | fc87ab48b1187c1750824df775198342c857cc20 | |
parent | 71f504a43d66c48ef0494be5e48c626e9a6eba06 (diff) | |
download | mpv-d3972125a17faaa0743a6349f6250393acfbdac4.tar.bz2 mpv-d3972125a17faaa0743a6349f6250393acfbdac4.tar.xz |
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.
-rw-r--r-- | osdep/subprocess-win.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |