Alexandre Julliard : winhelp: Properly handle negative coordinates for mouse events.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 25 13:29:17 CDT 2006


Module: wine
Branch: master
Commit: 0ab4c36c8e915fedba00813135d127ec12809994
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0ab4c36c8e915fedba00813135d127ec12809994

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Oct 25 17:43:22 2006 +0200

winhelp: Properly handle negative coordinates for mouse events.

---

 programs/winhelp/winhelp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c
index 28d464d..4e9a717 100644
--- a/programs/winhelp/winhelp.c
+++ b/programs/winhelp/winhelp.c
@@ -1111,8 +1111,8 @@ static LRESULT CALLBACK WINHELP_TextWndP
             HLPFILE*            hlpfile;
             HLPFILE_WINDOWINFO* wi;
 
-            mouse.x = LOWORD(lParam);
-            mouse.y = HIWORD(lParam);
+            mouse.x = (short)LOWORD(lParam);
+            mouse.y = (short)HIWORD(lParam);
 
             if (part->link) switch (part->link->cookie)
             {




More information about the wine-cvs mailing list