From 05765a0b0c0f0b3caa8cb4ad10a2a206ddf7f913 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Fri, 23 Oct 2009 15:03:12 +0200 Subject: [PATCH] user32/tests: Skip some tests on Win9x/WinMe. --- dlls/user32/tests/input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index 42d954442a7..d82ef3c84b0 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -904,7 +904,12 @@ static void test_Input_blackbox(void) SetWindowPos( window, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE ); SetForegroundWindow( window ); - hook = SetWindowsHookExA(WH_KEYBOARD_LL, hook_proc, GetModuleHandleA( NULL ), 0); + if (!(hook = SetWindowsHookExA(WH_KEYBOARD_LL, hook_proc, GetModuleHandleA( NULL ), 0))) + { + DestroyWindow(window); + win_skip("WH_KEYBOARD_LL is not supported\n"); + return; + } /* must process all initial messages, otherwise X11DRV_KeymapNotify unsets * key state set by SendInput(). */