summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-05-04 15:06:03 +1000
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-07 10:46:29 +0900
commit8a46b5b711fcc7fc41bea1f2f9046b4b1f313e56 (patch)
treea426fcf7e24b47ddf0fee267d46e7be66a1c3181 /osdep
parent052b6d406d77ed383f3b30447651a5294b3796f1 (diff)
downloadmpv-8a46b5b711fcc7fc41bea1f2f9046b4b1f313e56.tar.bz2
mpv-8a46b5b711fcc7fc41bea1f2f9046b4b1f313e56.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\ (cherry picked from commit b6381a0ee383acb1ee7a9562b166c18066747b7f)
Diffstat (limited to 'osdep')
-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