1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

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

This commit is contained in:
Richard M. Stallman 1996-05-11 17:26:00 +00:00
parent e38ee395e8
commit fc85cb2995

View File

@ -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;
}