Author: pschweitzer
Date: Thu Feb 26 01:30:17 2009
New Revision: 39756
URL:
http://svn.reactos.org/svn/reactos?rev=39756&view=rev
Log:
Mini optimalisation of RtlGenerate8dot3Name.
Patch by Peter Veenstra
See issue #4152 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=397…
==============================================================================
--- trunk/reactos/lib/rtl/dos8dot3.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/dos8dot3.c [iso-8859-1] Thu Feb 26 01:30:17 2009
@@ -83,7 +83,7 @@
DPRINT("StrLength: %lu\n", StrLength);
/* Find last dot in Name */
- DotPos = 0;
+ DotPos = StrLength;
for (i = 0; i < StrLength; i++)
{
if (Name->Buffer[i] == L'.')
@@ -92,10 +92,6 @@
}
}
- if (DotPos == 0)
- {
- DotPos = i;
- }
DPRINT("DotPos: %lu\n", DotPos);
/* Copy name (6 valid characters max) */