mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
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.
This commit is contained in:
parent
fd66ea7d93
commit
c67048827e
@ -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
|
// overlapped pipes, so instead, use a named pipe with a unique name
|
||||||
*read = CreateNamedPipeW(buf, PIPE_ACCESS_INBOUND |
|
*read = CreateNamedPipeW(buf, PIPE_ACCESS_INBOUND |
|
||||||
FILE_FLAG_FIRST_PIPE_INSTANCE | FILE_FLAG_OVERLAPPED,
|
FILE_FLAG_FIRST_PIPE_INSTANCE | FILE_FLAG_OVERLAPPED,
|
||||||
PIPE_TYPE_BYTE | PIPE_WAIT | PIPE_REJECT_REMOTE_CLIENTS,
|
PIPE_TYPE_BYTE | PIPE_WAIT, 1, 0, 4096, 0, NULL);
|
||||||
1, 0, 4096, 0, NULL);
|
if (*read == INVALID_HANDLE_VALUE)
|
||||||
if (!*read)
|
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
// Open the write end of the pipe as a synchronous handle
|
// Open the write end of the pipe as a synchronous handle
|
||||||
|
Loading…
Reference in New Issue
Block a user