mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
optimize 17218 by using memmove instead of memcopy and not using _tcsncmp. Suggested by thomas.
svn path=/trunk/; revision=17452
This commit is contained in:
parent
bf127ab4fb
commit
7677f95c2c
1 changed files with 2 additions and 2 deletions
|
@ -341,8 +341,8 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest)
|
||||||
/* remove any slashes */
|
/* remove any slashes */
|
||||||
while(i < _tcslen(first))
|
while(i < _tcslen(first))
|
||||||
{
|
{
|
||||||
if(!_tcsncmp (&first[i], _T("\""), 1))
|
if(first[i] == _T('\"'))
|
||||||
memcpy(&first[i],&first[i + 1], _tcslen(&first[i]));
|
memmove(&first[i],&first[i + 1], _tcslen(&first[i]) * sizeof(TCHAR));
|
||||||
else
|
else
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue