Commit 516c7e0d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

user32/tests: Initialize the cursor position in test_GetRawInputBuffer.

parent 1cfc3455
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment