mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +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
1 changed files with 1 additions and 5 deletions
|
@ -83,7 +83,7 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
|
||||||
DPRINT("StrLength: %lu\n", StrLength);
|
DPRINT("StrLength: %lu\n", StrLength);
|
||||||
|
|
||||||
/* Find last dot in Name */
|
/* Find last dot in Name */
|
||||||
DotPos = 0;
|
DotPos = StrLength;
|
||||||
for (i = 0; i < StrLength; i++)
|
for (i = 0; i < StrLength; i++)
|
||||||
{
|
{
|
||||||
if (Name->Buffer[i] == L'.')
|
if (Name->Buffer[i] == L'.')
|
||||||
|
@ -92,10 +92,6 @@ RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DotPos == 0)
|
|
||||||
{
|
|
||||||
DotPos = i;
|
|
||||||
}
|
|
||||||
DPRINT("DotPos: %lu\n", DotPos);
|
DPRINT("DotPos: %lu\n", DotPos);
|
||||||
|
|
||||||
/* Copy name (6 valid characters max) */
|
/* Copy name (6 valid characters max) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue