mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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:
parent
826d8dedae
commit
b2908d6d6f
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
/* CONSTANTS *****************************************************************/
|
/* CONSTANTS *****************************************************************/
|
||||||
|
|
||||||
const PCHAR RtlpShortIllegals = " ;+=[],\"*\\<>/?:|";
|
const PCHAR RtlpShortIllegals = ";+=[],\"*\\<>/?:|";
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
@ -103,7 +103,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
|
||||||
{
|
{
|
||||||
NameBuffer[NameLength++] = L'_';
|
NameBuffer[NameLength++] = L'_';
|
||||||
}
|
}
|
||||||
else if (c != '.')
|
else if (c != '.' && c != ' ')
|
||||||
{
|
{
|
||||||
NameBuffer[NameLength++] = (WCHAR)c;
|
NameBuffer[NameLength++] = (WCHAR)c;
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
|
||||||
{
|
{
|
||||||
ExtBuffer[ExtLength++] = L'_';
|
ExtBuffer[ExtLength++] = L'_';
|
||||||
}
|
}
|
||||||
else
|
else if (c != ' ')
|
||||||
{
|
{
|
||||||
ExtBuffer[ExtLength++] = c;
|
ExtBuffer[ExtLength++] = c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue