Phil Krylov : riched20: Added a comment to make life easier.
Module: wine Branch: refs/heads/master Commit: 69ae27ed2ff350ac8a758a593e9910c3637be1d5 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=69ae27ed2ff350ac8a758a59... Author: Phil Krylov <phil(a)newstar.rinet.ru> Date: Fri Feb 24 15:49:05 2006 +0300 riched20: Added a comment to make life easier. --- dlls/riched20/editor.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index cf6080a..6f4a8a5 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -889,6 +889,8 @@ ME_FindText(ME_TextEditor *editor, DWORD 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; }
participants (1)
-
Alexandre Julliard