]> git.sesse.net Git - vlc/commitdiff
Fail when calling vlc_pipe in Windows Store App mode
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Mar 2013 16:53:43 +0000 (17:53 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Mar 2013 16:54:16 +0000 (17:54 +0100)
src/win32/filesystem.c

index a96c8a33e1acb163dc507867803d3de391928d3b..775812307e4593a0d02ed03945374dfaf521ae0c 100644 (file)
@@ -240,7 +240,12 @@ int vlc_dup (int oldfd)
 
 int vlc_pipe (int fds[2])
 {
+#ifdef WINAPI_FAMILY_APP
+    _set_errno(EPERM);
+    return -1;
+#else
     return _pipe (fds, 32768, O_NOINHERIT | O_BINARY);
+#endif
 }
 
 #include <vlc_network.h>