Mini optimalisation of RtlGenerate8dot3Name.

Patch by Peter Veenstra 
See issue #4152 for more details.

svn path=/trunk/; revision=39756
This commit is contained in:
Pierre Schweitzer 2009-02-25 22:30:17 +00:00
parent d8b00f839d
commit 1675e01073

View file

@ -83,7 +83,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
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 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
}
}
if (DotPos == 0)
{
DotPos = i;
}
DPRINT("DotPos: %lu\n", DotPos);
/* Copy name (6 valid characters max) */