Huw Davies : riched20: Use a run helper in the delete text function.

Alexandre Julliard julliard at winehq.org
Tue Oct 27 16:43:49 CDT 2020


Module: wine
Branch: master
Commit: 0d50e0182d6c8331cc468a8b25807c33e033531a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0d50e0182d6c8331cc468a8b25807c33e033531a

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Oct 27 08:23:27 2020 +0000

riched20: Use a run helper in the delete text function.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched20/caret.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index d92b93ac2f0..6a8f1e1cd71 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -405,8 +405,8 @@ BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start,
           }
           if (pThisCur->nOffset == run->len)
           {
-            pThisCur->pRun = ME_FindItemFwd(pThisCur->pRun, diRunOrParagraphOrEnd);
-            assert(pThisCur->pRun->type == diRun);
+            pThisCur->pRun = run_get_di( run_next( &pThisCur->pRun->member.run ) );
+            assert( pThisCur->pRun );
             pThisCur->nOffset = 0;
           }
         }




More information about the wine-cvs mailing list