From b2908d6d6fee10a8b8b4efaaf2c0905faf7c218c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Fri, 16 Sep 2011 20:53:16 +0000 Subject: [PATCH] [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 --- reactos/lib/rtl/dos8dot3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/rtl/dos8dot3.c b/reactos/lib/rtl/dos8dot3.c index da71106a666..2d787ab79f5 100644 --- a/reactos/lib/rtl/dos8dot3.c +++ b/reactos/lib/rtl/dos8dot3.c @@ -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; }