[PATCH 5/5] riched20: Use a helper to retrieve the first run.

Huw Davies huw at codeweavers.com
Wed Oct 28 03:43:53 CDT 2020


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/riched20/wrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c
index 046a7fd5423..75bbb2c05c5 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -886,7 +886,7 @@ static void ME_WrapTextParagraph( ME_TextEditor *editor, ME_Context *c, ME_Parag
   linespace = ME_GetParaLineSpace( c, para );
 
   ME_BeginRow( &wc );
-  run = &ME_FindItemFwd( para_get_di( para ), diRun )->member.run;
+  run = para_first_run( para );
   while (run)
   {
     run = ME_WrapHandleRun( &wc, run );
-- 
2.23.0




More information about the wine-devel mailing list