Commit faf49ed3 authored by Alexandre Julliard's avatar Alexandre Julliard

user32/tests: Use nameless unions/structs.

parent e9e7301b
......@@ -3713,13 +3713,13 @@ static void simulate_click(BOOL left, int x, int y)
SetCursorPos(x, y);
memset(input, 0, sizeof(input));
input[0].type = INPUT_MOUSE;
U(input[0]).mi.dx = x;
U(input[0]).mi.dy = y;
U(input[0]).mi.dwFlags = left ? MOUSEEVENTF_LEFTDOWN : MOUSEEVENTF_RIGHTDOWN;
input[0].mi.dx = x;
input[0].mi.dy = y;
input[0].mi.dwFlags = left ? MOUSEEVENTF_LEFTDOWN : MOUSEEVENTF_RIGHTDOWN;
input[1].type = INPUT_MOUSE;
U(input[1]).mi.dx = x;
U(input[1]).mi.dy = y;
U(input[1]).mi.dwFlags = left ? MOUSEEVENTF_LEFTUP : MOUSEEVENTF_RIGHTUP;
input[1].mi.dx = x;
input[1].mi.dy = y;
input[1].mi.dwFlags = left ? MOUSEEVENTF_LEFTUP : MOUSEEVENTF_RIGHTUP;
events_no = SendInput(2, input, sizeof(input[0]));
ok(events_no == 2, "SendInput returned %d\n", events_no);
}
......
......@@ -10201,13 +10201,13 @@ static void simulate_click(int x, int y)
SetCursorPos(x, y);
memset(input, 0, sizeof(input));
input[0].type = INPUT_MOUSE;
U(input[0]).mi.dx = x;
U(input[0]).mi.dy = y;
U(input[0]).mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
input[0].mi.dx = x;
input[0].mi.dy = y;
input[0].mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
input[1].type = INPUT_MOUSE;
U(input[1]).mi.dx = x;
U(input[1]).mi.dy = y;
U(input[1]).mi.dwFlags = MOUSEEVENTF_LEFTUP;
input[1].mi.dx = x;
input[1].mi.dy = y;
input[1].mi.dwFlags = MOUSEEVENTF_LEFTUP;
events_no = SendInput(2, input, sizeof(input[0]));
ok(events_no == 2, "SendInput returned %d\n", events_no);
SetCursorPos(pt.x, pt.y);
......
......@@ -595,9 +595,9 @@ static void test_inputdesktop(void)
INPUT inputs[1];
inputs[0].type = INPUT_KEYBOARD;
U(inputs[0]).ki.wVk = 0;
U(inputs[0]).ki.wScan = 0x3c0;
U(inputs[0]).ki.dwFlags = KEYEVENTF_UNICODE;
inputs[0].ki.wVk = 0;
inputs[0].ki.wScan = 0x3c0;
inputs[0].ki.dwFlags = KEYEVENTF_UNICODE;
/* OpenInputDesktop creates new handles for each calls */
old_input_desk = OpenInputDesktop(0, FALSE, DESKTOP_ALL_ACCESS);
......
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