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:
Brandon Turner 2005-08-20 19:04:38 +00:00
parent bf127ab4fb
commit 7677f95c2c

View file

@ -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++;
}