]> git.sesse.net Git - vlc/commitdiff
file: remove Win32 leading slash handling
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 09:29:07 +0000 (11:29 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 09:29:07 +0000 (11:29 +0200)
InputSourceInit() does it globally already

modules/access/file.c

index 8580953e1a392b07b3ecbf12a1dedd1c1a0f29ec..61f4f89253c88f36a5d1bb9a7ec3f0a49553a572 100644 (file)
@@ -407,15 +407,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
  *****************************************************************************/
 static int open_file (access_t *p_access, const char *path)
 {
-#if defined(WIN32)
-    if (!strcasecmp (p_access->psz_access, "file")
-      && ('/' == path[0]) && isalpha (path[1])
-      && (':' == path[2]) && ('/' == path[3]))
-        /* Explorer can open path such as file:/C:/ or file:///C:/
-         * hence remove leading / if found */
-        path++;
-#endif
-
     int fd = utf8_open (path, O_RDONLY | O_NONBLOCK);
     if (fd == -1)
     {