Commit 063a3bc8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

file: remove Win32 leading slash handling

InputSourceInit() does it globally already
parent 9186a2f0
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment