From: Charlotte Pabst <cpabst(a)codeweavers.com> According to microsoft documentation, ScrollWindowEx, SetScrollPos and SetScrollRange may only be called while the control is in-place active. This fixes a segmentation fault in an application. Signed-off-by: Charlotte Pabst <cpabst(a)codeweavers.com> --- dlls/riched20/paint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 8bc1b8bcd2f..54b7ffd82bc 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -1212,6 +1212,8 @@ void editor_ensure_visible( ME_TextEditor *editor, ME_Cursor *cursor ) ME_Paragraph *para = cursor->para; int x, y, yheight; + if (!editor->in_place_active) + return; if (editor->scrollbars & ES_AUTOHSCROLL) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6608