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 */ /* 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++;
} }