Mercurial > emacs
changeset 15213:867e4ead88d9
(map_win32_filename): If not a fat volume, cvt name to dos.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 11 May 1996 17:26:00 +0000 |
parents | 3b8ece0572d5 |
children | 308abb9a57f4 |
files | src/w32.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32.c Sat May 11 17:11:06 1996 +0000 +++ b/src/w32.c Sat May 11 17:26:00 1996 +0000 @@ -763,7 +763,6 @@ 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 @@ } } *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; }