[PATCH v2 2/3] user32/tests: Initialize the cursor position in test_GetRawInputBuffer.

Rémi Bernon rbernon at codeweavers.com
Fri May 14 09:04:46 CDT 2021


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




More information about the wine-devel mailing list