Alexandre Julliard : regedit:
Properly handle negative coordinates for mouse events.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 25 13:29:13 CDT 2006
Module: wine
Branch: master
Commit: 5b875279d1ff90251ba0e6b157c8828f1611c86d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b875279d1ff90251ba0e6b157c8828f1611c86d
Author: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list