Francois Gouget : user32/tests: Fix compilation on systems that don' t support nameless unions.

Alexandre Julliard julliard at winehq.org
Mon Mar 31 13:32:43 CDT 2014


Module: wine
Branch: master
Commit: ebd99188302b27351cdf72d5296fde8ff82922ac
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ebd99188302b27351cdf72d5296fde8ff82922ac

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Mar 31 12:30:43 2014 +0200

user32/tests: Fix compilation on systems that don't support nameless unions.

---

 dlls/user32/tests/win.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 5206642..0966bad 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -7548,13 +7548,13 @@ START_TEST(win)
 
         memset(input, 0, sizeof(input));
         input[0].type = INPUT_MOUSE;
-        input[0].mi.dx = 101;
-        input[0].mi.dy = 101;
-        input[0].mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
+        U(input[0]).mi.dx = 101;
+        U(input[0]).mi.dy = 101;
+        U(input[0]).mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
         input[0].type = INPUT_MOUSE;
-        input[0].mi.dx = 101;
-        input[0].mi.dy = 101;
-        input[0].mi.dwFlags = MOUSEEVENTF_LEFTUP;
+        U(input[0]).mi.dx = 101;
+        U(input[0]).mi.dy = 101;
+        U(input[0]).mi.dwFlags = MOUSEEVENTF_LEFTUP;
         events_no = SendInput(2, input, sizeof(input[0]));
         ok(events_no == 2, "SendInput returned %d\n", events_no);
         ok(SetForegroundWindow(hwndMain), "SetForegroundWindow failed\n");




More information about the wine-cvs mailing list