mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[RTL]
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user