Module: wine Branch: master Commit: 33b346613ec1b3c41db29d1bf131b3d04ac34f44 URL: http://source.winehq.org/git/wine.git/?a=commit;h=33b346613ec1b3c41db29d1bf1...
Author: Alexandre Julliard julliard@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 );