mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-31 09:20:54 -08:00
(map_win32_filename): If not a fat volume, cvt name to dos.
This commit is contained in:
parent
e38ee395e8
commit
fc85cb2995
1 changed files with 7 additions and 5 deletions
12
src/w32.c
12
src/w32.c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue