[USER32_WINETEST]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 25 Feb 2015 17:31:53 +0000 (17:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 25 Feb 2015 17:31:53 +0000 (17:31 +0000)
- Apply hacks to make the tests succeed on Windows

svn path=/trunk/; revision=66456

rostests/winetests/user32/msg.c

index 7b99851..520d171 100755 (executable)
@@ -14717,9 +14717,12 @@ START_TEST(msg_messages)
 START_TEST(msg_focus)
 {
     init_tests();
-    test_SetFocus();
     test_SetActiveWindow();
+    test_SetFocus();
 
+    /* HACK: For some reason test_SetForegroundWindow fails on Windows unless
+     * we do this */
+    keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
     /* keep it the last test, under Windows it tends to break the tests
      * which rely on active/foreground windows being correct.
      */