Module: wine Branch: master Commit: faf49ed39a7bb972ffec1c6ff7271b510eb01199 URL: https://gitlab.winehq.org/wine/wine/-/commit/faf49ed39a7bb972ffec1c6ff7271b5...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jul 21 11:36:11 2023 +0200
user32/tests: Use nameless unions/structs.
---
dlls/user32/tests/input.c | 12 ++++++------ dlls/user32/tests/win.c | 12 ++++++------ dlls/user32/tests/winstation.c | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index 2ce129dae45..f2f1c7ce5c0 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -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); } diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index a3216da9f46..cf5f0d932e8 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -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); diff --git a/dlls/user32/tests/winstation.c b/dlls/user32/tests/winstation.c index 5f0925a7712..23b86443af0 100644 --- a/dlls/user32/tests/winstation.c +++ b/dlls/user32/tests/winstation.c @@ -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);