From: Thomas Faber Date: Wed, 25 Feb 2015 17:31:53 +0000 (+0000) Subject: [USER32_WINETEST] X-Git-Tag: ReactOS-0.3.17-CLT2015~290 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=4ad923920924a872c0a4e2896261762d0f38b577 [USER32_WINETEST] - Apply hacks to make the tests succeed on Windows svn path=/trunk/; revision=66456 --- diff --git a/rostests/winetests/user32/msg.c b/rostests/winetests/user32/msg.c index 7b99851f0dd..520d171f7f8 100755 --- a/rostests/winetests/user32/msg.c +++ b/rostests/winetests/user32/msg.c @@ -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. */