e.g.
Find what: L
Replace with: R
Match whole word only: checked
NULL -> NULR
--HG--
branch : stable
ASSERT (pszFindWhat != NULL);
int nCur = 0;
int nLength = (int) _tcslen (pszFindWhat);
+ LPCTSTR pszFindWhereOrig = pszFindWhere;
nLen = nLength;
for (;;)
{
return -1;
if ((dwFlags & FIND_WHOLE_WORD) == 0)
return nCur + (int) (pszPos - pszFindWhere);
- if (pszPos > pszFindWhere && xisalnum (pszPos[-1]))
+ if (pszPos > pszFindWhereOrig && xisalnum (pszPos[-1]))
{
nCur += (int) (pszPos - pszFindWhere + 1);
pszFindWhere = pszPos + 1;