diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 33310a1..ffceceb 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -3558,9 +3558,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam, pt.x += editor->selofs; pt.x++; /* for some reason native offsets x by one */ - si.cbSize = sizeof(si); - si.fMask = SIF_POS; - if (GetScrollInfo(editor->hWnd, SB_VERT, &si)) pt.y -= si.nPos; + pt.y -= editor->vert_si.nPos; si.cbSize = sizeof(si); si.fMask = SIF_POS; if (GetScrollInfo(editor->hWnd, SB_HORZ, &si)) pt.x -= si.nPos;