[PATCH] comctl32/tests: Prevent some test failures by moving the cursor away from the window.

Huw Davies huw at codeweavers.com
Mon Oct 7 04:14:02 CDT 2019


On Sat, Oct 05, 2019 at 04:23:34PM +0200, Sven Baars wrote:
> Signed-off-by: Sven Baars <sven.wine at gmail.com>
> ---
>  dlls/comctl32/tests/edit.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/dlls/comctl32/tests/edit.c b/dlls/comctl32/tests/edit.c
> index f454434a0c..e01d19b2ac 100644
> --- a/dlls/comctl32/tests/edit.c
> +++ b/dlls/comctl32/tests/edit.c
> @@ -3329,6 +3329,8 @@ static void test_change_focus(void)
>      oldproc = (WNDPROC)SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)edit_subclass_proc);
>      SetWindowLongPtrA(hwnd, GWLP_USERDATA, (LONG_PTR)oldproc);
>  
> +    SetCursorPos(400, 400);
> +
>      SetFocus(parent_wnd);
>      flush_sequences(sequences, NUM_MSG_SEQUENCES);
>      SetFocus(hwnd);

You should restore the original cursor position when the
test finishes.

Huw.



More information about the wine-devel mailing list