Rémi Bernon : user32/tests: Initialize the cursor position in test_GetRawInputBuffer.
Module: wine Branch: master Commit: 516c7e0dd8189b021c86da234bec2079956909c1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=516c7e0dd8189b021c86da234... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Fri May 14 16:04:46 2021 +0200 user32/tests: Initialize the cursor position in test_GetRawInputBuffer. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index d10a7f6504d..1679048794b 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -2236,10 +2236,15 @@ static void test_GetRawInputBuffer(void) UINT size, count, rawinput_size; HWND hwnd; BOOL ret; + POINT pt; if (is_wow64) rawinput_size = sizeof(RAWINPUT64); else rawinput_size = sizeof(RAWINPUT); + SetCursorPos(300, 300); + GetCursorPos(&pt); + ok(pt.x == 300 && pt.y == 300, "Unexpected cursor position pos %dx%d\n", pt.x, pt.y); + hwnd = CreateWindowA("static", "static", WS_VISIBLE | WS_POPUP, 100, 100, 100, 100, 0, NULL, NULL, NULL); SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)rawinputbuffer_wndproc);
participants (1)
-
Alexandre Julliard