user32/tests: Initialize the cursor position in test_GetRawInputBuffer.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1cfc34551e
commit
516c7e0dd8
|
@ -2236,10 +2236,15 @@ static void test_GetRawInputBuffer(void)
|
||||||
UINT size, count, rawinput_size;
|
UINT size, count, rawinput_size;
|
||||||
HWND hwnd;
|
HWND hwnd;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
POINT pt;
|
||||||
|
|
||||||
if (is_wow64) rawinput_size = sizeof(RAWINPUT64);
|
if (is_wow64) rawinput_size = sizeof(RAWINPUT64);
|
||||||
else rawinput_size = sizeof(RAWINPUT);
|
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,
|
hwnd = CreateWindowA("static", "static", WS_VISIBLE | WS_POPUP,
|
||||||
100, 100, 100, 100, 0, NULL, NULL, NULL);
|
100, 100, 100, 100, 0, NULL, NULL, NULL);
|
||||||
SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)rawinputbuffer_wndproc);
|
SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)rawinputbuffer_wndproc);
|
||||||
|
|
Loading…
Reference in New Issue