[ros-diffs] [pschweitzer] 39756: Mini optimalisation of RtlGenerate8dot3Name. Patch by Peter Veenstra See issue #4152 for more details.
pschweitzer at svn.reactos.org
pschweitzer at svn.reactos.org
Wed Feb 25 23:30:18 CET 2009
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=39756&r1=39755&r2=39756&view=diff
==============================================================================
--- 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) */
More information about the Ros-diffs
mailing list