riched20: Added a comment to make life easier.

oldstable
Phil Krylov 2006-02-24 15:49:05 +03:00 committed by Alexandre Julliard
parent 4aa6418d51
commit 69ae27ed2f
1 changed files with 2 additions and 0 deletions

View File

@ -889,6 +889,8 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, CHARRANGE *chrg, WCHAR *text, CH
if (nCurEnd - nMatched == 0)
{
pCurItem = ME_FindItemBack(pCurItem, diRun);
/* Don't care about pCurItem becoming NULL here; it's already taken
* care of in the exterior loop condition */
para = ME_GetParagraph(pCurItem);
nCurEnd = ME_StrLen(pCurItem->member.run.strText) + nMatched;
}