Commit d62ac319 authored by Alexandre Julliard's avatar Alexandre Julliard

dinput/tests: Try harder to avoid spurious keyboard input.

parent 2bd84420
......@@ -411,6 +411,8 @@ static void test_dik_codes(IDirectInputA *dI, HWND hwnd, LANGID langid)
if (!PeekMessageA(&msg, hwnd, 0, 0, PM_REMOVE))
{
U(in).ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &in, sizeof(in));
win_skip("failed to queue keyboard event\n");
break;
}
......@@ -471,6 +473,7 @@ static void keyboard_tests(DWORD version)
hwnd = CreateWindowA("static", "Title", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 10, 10, 200, 200,
NULL, NULL, NULL, NULL);
ok(hwnd != NULL, "err: %d\n", GetLastError());
SetForegroundWindow( hwnd );
if (hwnd)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment