[PATCH] riched20: Fix link notification conditions and add tests.

Alexandre Julliard julliard at winehq.org
Mon Jun 8 03:43:25 CDT 2015


Alex Henrie <alexhenrie24 at gmail.com> writes:

> @@ -4121,6 +4121,10 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
>      return 0;
>    case WM_SETCURSOR:
>    {
> +    POINT cursor_pos;
> +    if (wParam == (WPARAM)editor->hWnd && GetCursorPos(&cursor_pos) &&
> +        ScreenToClient(editor->hWnd, &cursor_pos))
> +      ME_LinkNotify(editor, msg, 0, MAKELPARAM(cursor_pos.x, cursor_pos.y));

Getting the current cursor position doesn't look right, it should be the
message position.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list