summaryrefslogtreecommitdiffstats
path: root/osdep/subprocess-win.c
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-05-04 15:06:03 +1000
committerwm4 <wm4@nowhere>2015-05-04 09:24:53 +0200
commitb6381a0ee383acb1ee7a9562b166c18066747b7f (patch)
treeabaccbd6d9da59168a38061187e7d083efbf58d7 /osdep/subprocess-win.c
parent08d3ef3d9e94609d1fc6c4c0892b17945bc7d0f8 (diff)
downloadmpv-b6381a0ee383acb1ee7a9562b166c18066747b7f.tar.bz2
mpv-b6381a0ee383acb1ee7a9562b166c18066747b7f.tar.xz
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/subprocess-win.c')
-rw-r--r--osdep/subprocess-win.c2
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