From 063a3bc887e1f75ba181a5063c679e3c5ea7e2a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 16 Jan 2010 11:29:07 +0200 Subject: [PATCH] file: remove Win32 leading slash handling InputSourceInit() does it globally already --- modules/access/file.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/access/file.c b/modules/access/file.c index 8580953e1a..61f4f89253 100644 --- a/modules/access/file.c +++ b/modules/access/file.c @@ -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) { -- 2.39.5