Rémi Bernon : user32/tests: Initialize the cursor position in test_GetRawInputBuffer.

Alexandre Julliard julliard at winehq.org
Fri May 14 15:47:04 CDT 2021


Module: wine
Branch: master
Commit: 516c7e0dd8189b021c86da234bec2079956909c1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=516c7e0dd8189b021c86da234bec2079956909c1

Author: Rémi Bernon <rbernon at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list