riched20: Use a helper to find the next run.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-10-28 08:43:51 +00:00 committed by Alexandre Julliard
parent b3b3624079
commit f9a82574c9
1 changed files with 2 additions and 1 deletions

View File

@ -1148,7 +1148,8 @@ static BOOL ME_StreamOutText(ME_TextEditor *editor, ME_OutStream *pStream,
nChars -= nLen;
cursor.nOffset = 0;
cursor.pRun = ME_FindItemFwd(cursor.pRun, diRun);
cursor.pRun = run_next_all_paras( &cursor.pRun->member.run ) ?
run_get_di( run_next_all_paras( &cursor.pRun->member.run ) ) : NULL;
}
heap_free(buffer);