diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-12-06 11:43:54 +1100 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2015-12-20 21:06:02 +1100 |
commit | 491958a724b49c2ac0d82ba2a48eede6860c1e6b (patch) | |
tree | 27aee36dab0e2b05a032ed75a009098e635044d7 | |
parent | 808653a9b6f2d9cb6aedf21533dd628f58050195 (diff) |
win32: use PIPE_REJECT_REMOTE_CLIENTS
This partially reverts c670488. mpv only supports Vista and up, so this
flag is fine.
-rw-r--r-- | osdep/subprocess-win.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/osdep/subprocess-win.c b/osdep/subprocess-win.c index 44f6d2bb68..10ebda0111 100644 --- a/osdep/subprocess-win.c +++ b/osdep/subprocess-win.c @@ -118,7 +118,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, 1, 0, 4096, 0, NULL); + PIPE_TYPE_BYTE | PIPE_WAIT | PIPE_REJECT_REMOTE_CLIENTS, + 1, 0, 4096, 0, NULL); if (*read == INVALID_HANDLE_VALUE) goto error; |