From 7559526438736fe634dc07e6effd8d8d993cc1fe Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Wed, 15 May 2013 12:40:43 -0500 Subject: [PATCH] user32: Points for IMR_QUERYCHARPOSITION need to be in screen coordinates. Found by Ken Thomases. --- dlls/user32/edit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 1ce79db351e..126ab1290b5 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -5182,6 +5182,8 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B chpos->pt.y = HIWORD(pos); chpos->cLineHeight = es->line_height; chpos->rcDocument = es->format_rect; + MapWindowPoints(hwnd, 0, &chpos->pt, 1); + MapWindowPoints(hwnd, 0, (POINT*)&chpos->rcDocument, 2); result = 1; break; }