Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fc85cb29
Commit
fc85cb29
authored
May 11, 1996
by
Richard M. Stallman
Browse files
(map_win32_filename): If not a fat volume, cvt name to dos.
parent
e38ee395
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/w32.c
src/w32.c
+7
-5
No files found.
src/w32.c
View file @
fc85cb29
...
...
@@ -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
=
short
name
+
(
path
-
name
);
return
name
;
return
short
name
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment