Author: ekohl Date: Fri Sep 16 20:53:16 2011 New Revision: 53725
URL: http://svn.reactos.org/svn/reactos?rev=53725&view=rev Log: [RTL] RtlGenerate8dot3Name: Ignore spaces in long file names instead of converting them to underscores. See issue #6385 for more details.
Modified: trunk/reactos/lib/rtl/dos8dot3.c
Modified: trunk/reactos/lib/rtl/dos8dot3.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/dos8dot3.c?rev=5372... ============================================================================== --- trunk/reactos/lib/rtl/dos8dot3.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/dos8dot3.c [iso-8859-1] Fri Sep 16 20:53:16 2011 @@ -15,7 +15,7 @@
/* CONSTANTS *****************************************************************/
-const PCHAR RtlpShortIllegals = " ;+=[],"*\<>/?:|"; +const PCHAR RtlpShortIllegals = ";+=[],"*\<>/?:|";
/* FUNCTIONS *****************************************************************/ @@ -103,7 +103,7 @@ { NameBuffer[NameLength++] = L'_'; } - else if (c != '.') + else if (c != '.' && c != ' ') { NameBuffer[NameLength++] = (WCHAR)c; } @@ -123,7 +123,7 @@ { ExtBuffer[ExtLength++] = L'_'; } - else + else if (c != ' ') { ExtBuffer[ExtLength++] = c; }