[PATCH 2/5] riched20: Use a run helper in the delete text function.

Huw Davies huw at codeweavers.com
Tue Oct 27 03:23:27 CDT 2020


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 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;
           }
         }
-- 
2.23.0




More information about the wine-devel mailing list