From 44e8ead5d0283eaacd625b4458951e78f36413df Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 25 Oct 2006 17:41:58 +0200 Subject: [PATCH] hhctrl.ocx: Properly handle negative coordinates for mouse events. --- dlls/hhctrl.ocx/help.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index 2c288b67be3..1ed1c8bbe02 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -132,7 +132,10 @@ static void SB_OnLButtonDown(HWND hWnd, WPARAM wParam, LPARAM lParam) static void SB_OnLButtonUp(HWND hWnd, WPARAM wParam, LPARAM lParam) { HHInfo *pHHInfo = (HHInfo *)GetWindowLongPtrW(hWnd, GWLP_USERDATA); - POINTS pt = MAKEPOINTS(lParam); + POINT pt; + + pt.x = (short)LOWORD(lParam); + pt.y = (short)HIWORD(lParam); /* update the window sizes */ pHHInfo->pHHWinType->iNavWidth += pt.x;