From 938f2314559dfcf1d60f008b3bbc8c04535bcc7b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 25 Oct 2006 17:43:09 +0200 Subject: [PATCH] winefile: Properly handle negative coordinates for mouse events. --- programs/winefile/winefile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 84d06de0504..7a0577eac90 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -4320,7 +4320,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM case WM_LBUTTONDOWN: { RECT rt; - int x = LOWORD(lparam); + int x = (short)LOWORD(lparam); GetClientRect(hwnd, &rt); @@ -4338,7 +4338,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM if (GetCapture() == hwnd) { #ifdef _NO_EXTENSIONS RECT rt; - int x = LOWORD(lparam); + int x = (short)LOWORD(lparam); draw_splitbar(hwnd, last_split); last_split = -1; GetClientRect(hwnd, &rt); @@ -4376,7 +4376,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM case WM_MOUSEMOVE: if (GetCapture() == hwnd) { RECT rt; - int x = LOWORD(lparam); + int x = (short)LOWORD(lparam); #ifdef _NO_EXTENSIONS HDC hdc = GetDC(hwnd); -- 2.11.4.GIT