From 5d179e4b39a0c52a23d61430fc7a567fb381b22e Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 28 Oct 2020 08:43:53 +0000 Subject: [PATCH] riched20: Use a helper to retrieve the first run. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- 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 );