From 5b875279d1ff90251ba0e6b157c8828f1611c86d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard <julliard@winehq.org> Date: Wed, 25 Oct 2006 17:42:57 +0200 Subject: [PATCH] regedit: Properly handle negative coordinates for mouse events. --- programs/regedit/childwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index 62c00b083bc..b7262ff66e9 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -245,7 +245,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa 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; -- GitLab