RtlGenerate8dot3Name: Ignore spaces in long file names instead of converting them to underscores.
See issue #6385 for more details.

svn path=/trunk/; revision=53725
This commit is contained in:
Eric Kohl 2011-09-16 20:53:16 +00:00
parent 826d8dedae
commit b2908d6d6f

View file

@ -15,7 +15,7 @@
/* CONSTANTS *****************************************************************/
const PCHAR RtlpShortIllegals = " ;+=[],\"*\\<>/?:|";
const PCHAR RtlpShortIllegals = ";+=[],\"*\\<>/?:|";
/* FUNCTIONS *****************************************************************/
@ -103,7 +103,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
{
NameBuffer[NameLength++] = L'_';
}
else if (c != '.')
else if (c != '.' && c != ' ')
{
NameBuffer[NameLength++] = (WCHAR)c;
}
@ -123,7 +123,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
{
ExtBuffer[ExtLength++] = L'_';
}
else
else if (c != ' ')
{
ExtBuffer[ExtLength++] = c;
}