mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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 */
|
||||
while(i < _tcslen(first))
|
||||
{
|
||||
if(!_tcsncmp (&first[i], _T("\""), 1))
|
||||
memcpy(&first[i],&first[i + 1], _tcslen(&first[i]));
|
||||
if(first[i] == _T('\"'))
|
||||
memmove(&first[i],&first[i + 1], _tcslen(&first[i]) * sizeof(TCHAR));
|
||||
else
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue