[ros-diffs] [pschweitzer] 35632: Skip first dots in filename while generating 8dot3 filename in RtlGenerate8dot3Name.
pschweitzer at svn.reactos.org
pschweitzer at svn.reactos.org
Mon Aug 25 20:14:44 CEST 2008
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?rev=35632&r1=35631&r2=35632&view=diff
==============================================================================
--- 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;
}
}
More information about the Ros-diffs
mailing list