Module: wine Branch: master Commit: 44e8ead5d0283eaacd625b4458951e78f36413df URL: http://source.winehq.org/git/wine.git/?a=commit;h=44e8ead5d0283eaacd625b4458...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Oct 25 17:41:58 2006 +0200
hhctrl.ocx: Properly handle negative coordinates for mouse events.
---
dlls/hhctrl.ocx/help.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index 2c288b6..1ed1c8b 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -132,7 +132,10 @@ static void SB_OnLButtonDown(HWND hWnd, 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;