Commit fc85cb29 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(map_win32_filename): If not a fat volume, cvt name to dos.

parent e38ee395
......@@ -763,7 +763,6 @@ map_win32_filename (const char * name, const char ** pPath)
static char shortname[MAX_PATH];
char * str = shortname;
char c;
const char * orig_name = name;
char * path;
if (is_fat_volume (name, &path)) /* truncate to 8.3 */
......@@ -841,14 +840,17 @@ map_win32_filename (const char * name, const char ** pPath)
}
}
*str = '\0';
name = shortname;
}
else
{
strcpy (shortname, name);
unixtodos_filename (shortname);
}
if (pPath)
*pPath = name + (path - orig_name);
*pPath = shortname + (path - name);
return name;
return shortname;
}
......
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