msi: Properly handle negative coordinates for mouse events.

This commit is contained in:
Alexandre Julliard 2006-10-25 17:42:04 +02:00
parent 44e8ead5d0
commit 33b346613e
1 changed files with 2 additions and 2 deletions

View File

@ -1800,8 +1800,8 @@ MSISelectionTree_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
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 );