mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
Mini optimalisation of RtlGenerate8dot3Name.
Patch by Peter Veenstra See issue #4152 for more details. svn path=/trunk/; revision=39756
This commit is contained in:
parent
d8b00f839d
commit
1675e01073
|
@ -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) */
|
||||
|
|
Loading…
Reference in a new issue