From f51c4004362eda28e0d4d32acb8795a500a4d26a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 25 Oct 2006 17:43:02 +0200 Subject: [PATCH] wineconsole: Properly handle negative coordinates for mouse events. --- programs/wineconsole/user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index fbb1b98ec3..4249e1fc2d 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -1177,8 +1177,8 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM { POINT pt; - pt.x = LOWORD(lParam); - pt.y = HIWORD(lParam); + pt.x = (short)LOWORD(lParam); + pt.y = (short)HIWORD(lParam); ClientToScreen(hWnd, &pt); WCUSER_SetMenuDetails(data, PRIVATE(data)->hPopMenu); TrackPopupMenu(PRIVATE(data)->hPopMenu, TPM_LEFTALIGN|TPM_TOPALIGN, -- 2.32.0.93.g670b81a890