Huw Davies : riched20: Use a helper to retrieve the first run.

Alexandre Julliard julliard at winehq.org
Wed Oct 28 15:58:17 CDT 2020


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Oct 28 08:43:53 2020 +0000

riched20: Use a helper to retrieve the first run.

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

---

 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 );




More information about the wine-cvs mailing list