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

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


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

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

msi: Properly handle negative coordinates for mouse events.

---

 dlls/msi/dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 5c4ca26..422f0c5 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -1800,8 +1800,8 @@ MSISelectionTree_WndProc(HWND hWnd, UINT
     switch( msg )
     {
     case WM_LBUTTONDOWN:
-        tvhti.pt.x = LOWORD( lParam );
-        tvhti.pt.y = HIWORD( lParam );
+        tvhti.pt.x = (short)LOWORD( lParam );
+        tvhti.pt.y = (short)HIWORD( lParam );
         tvhti.flags = 0;
         tvhti.hItem = 0;
         r = CallWindowProcW(info->oldproc, hWnd, TVM_HITTEST, 0, (LPARAM) &tvhti );




More information about the wine-cvs mailing list