Alexandre Julliard : regedit: Properly handle negative coordinates for mouse events.
Module: wine Branch: master Commit: 5b875279d1ff90251ba0e6b157c8828f1611c86d URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b875279d1ff90251ba0e6b157... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Oct 25 17:42:57 2006 +0200 regedit: Properly handle negative coordinates for mouse events. --- programs/regedit/childwnd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index 62c00b0..b7262ff 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -245,7 +245,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, break; case WM_LBUTTONDOWN: { RECT rt; - int x = LOWORD(lParam); + int x = (short)LOWORD(lParam); GetClientRect(hWnd, &rt); if (x>=pChildWnd->nSplitPos-SPLIT_WIDTH/2 && x<pChildWnd->nSplitPos+SPLIT_WIDTH/2+1) { last_split = pChildWnd->nSplitPos;
participants (1)
-
Alexandre Julliard