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

Francois Gouget fgouget at free.fr
Sat Oct 5 17:22:29 CDT 2013


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

diff --git a/dlls/user32/tests/winstation.c b/dlls/user32/tests/winstation.c
index 7155b33..1804345 100644
--- a/dlls/user32/tests/winstation.c
+++ b/dlls/user32/tests/winstation.c
@@ -483,9 +483,9 @@ static void test_inputdesktop(void)
     INPUT inputs[1];
 
     inputs[0].type = INPUT_KEYBOARD;
-    inputs[0].ki.wVk = 0;
-    inputs[0].ki.wScan = 0x3c0;
-    inputs[0].ki.dwFlags = KEYEVENTF_UNICODE;
+    U(inputs[0]).ki.wVk = 0;
+    U(inputs[0]).ki.wScan = 0x3c0;
+    U(inputs[0]).ki.dwFlags = KEYEVENTF_UNICODE;
 
     /* OpenInputDesktop creates new handles for each calls */
     old_input_desk = OpenInputDesktop(0, FALSE, DESKTOP_ALL_ACCESS);
-- 
1.8.4.rc3




More information about the wine-patches mailing list