From 69ae27ed2ff350ac8a758a593e9910c3637be1d5 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Fri, 24 Feb 2006 15:49:05 +0300 Subject: [PATCH] riched20: Added a comment to make life easier. --- dlls/riched20/editor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index cf6080a9b33..6f4a8a5ce4d 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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; }