winhelp: Properly handle negative coordinates for mouse events.

This commit is contained in:
Alexandre Julliard 2006-10-25 17:43:22 +02:00
parent d0547cb631
commit 0ab4c36c8e
1 changed files with 2 additions and 2 deletions

View File

@ -1111,8 +1111,8 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
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)
{