diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-05-04 15:06:03 +1000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-04 09:24:53 +0200 |
commit | b6381a0ee383acb1ee7a9562b166c18066747b7f (patch) | |
tree | abaccbd6d9da59168a38061187e7d083efbf58d7 /osdep | |
parent | 08d3ef3d9e94609d1fc6c4c0892b17945bc7d0f8 (diff) |
subprocess-win: use the correct pipe namespace
This was a mistake, it should definitely be using the device namespace
rather than the file namespace. As it says in the docs, all pipe names
must start with \\.\pipe\
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/subprocess-win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/subprocess-win.c b/osdep/subprocess-win.c index 6c9ccf2382..a5be9e52ab 100644 --- a/osdep/subprocess-win.c +++ b/osdep/subprocess-win.c @@ -112,7 +112,7 @@ static int create_overlapped_pipe(HANDLE *read, HANDLE *write) unsigned long id = atomic_fetch_add(&counter, 1); unsigned pid = GetCurrentProcessId(); wchar_t buf[36]; - swprintf(buf, sizeof(buf), L"\\\\?\\pipe\\mpv-anon-%08x-%08lx", pid, id); + swprintf(buf, sizeof(buf), L"\\\\.\\pipe\\mpv-anon-%08x-%08lx", pid, id); // The function for creating anonymous pipes (CreatePipe) can't create // overlapped pipes, so instead, use a named pipe with a unique name |