Author: pschweitzer Date: Mon Aug 25 13:14:44 2008 New Revision: 35632
URL: http://svn.reactos.org/svn/reactos?rev=35632&view=rev Log: Skip first dots in filename while generating 8dot3 filename in RtlGenerate8dot3Name.
Modified: branches/pierre-fsd/lib/rtl/dos8dot3.c
Modified: branches/pierre-fsd/lib/rtl/dos8dot3.c URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/lib/rtl/dos8dot3.c?re... ============================================================================== --- branches/pierre-fsd/lib/rtl/dos8dot3.c [iso-8859-1] (original) +++ branches/pierre-fsd/lib/rtl/dos8dot3.c [iso-8859-1] Mon Aug 25 13:14:44 2008 @@ -95,6 +95,7 @@ ULONG IndexLength; ULONG CurrentIndex; USHORT Checksum; + BOOLEAN SkipDots = TRUE;
StrLength = Name->Length / sizeof(WCHAR); DPRINT("StrLength: %lu\n", StrLength); @@ -105,7 +106,14 @@ { if (Name->Buffer[i] == L'.') { - DotPos = i; + if (!SkipDots) + { + DotPos = i; + } + } + else + { + SkipDots = FALSE; } }