Module: wine Branch: master Commit: d6dc917232b170cca2c0e4d9285a1b2bcb447214 URL: https://gitlab.winehq.org/wine/wine/-/commit/d6dc917232b170cca2c0e4d9285a1b2...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Sun Feb 4 11:19:47 2024 +0800
user32/tests: Fix test_recursive_messages() test failures on win7.
Windows 7 has a lower maximum depth for recursive hooks.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56293
---
dlls/user32/tests/msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index f58b95546ec..3414dda6e5a 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -12645,7 +12645,7 @@ static LRESULT WINAPI recursive_messages_proc(HWND hwnd, UINT message, WPARAM wp static int msg_depth; MSG msg;
- if (message == WM_SETCURSOR && max_msg_depth < 25) + if (message == WM_SETCURSOR && max_msg_depth < 15) { msg_depth++; max_msg_depth = max(max_msg_depth, msg_depth); @@ -12678,7 +12678,7 @@ static void test_recursive_messages(void) flush_events();
/* Expect recursive_messages_proc() gets called recursively for WM_SETCURSOR */ - ok(max_msg_depth == 25, "Got expected %d.\n", max_msg_depth); + ok(max_msg_depth == 15, "Got expected %d.\n", max_msg_depth);
DestroyWindow(hwnd); UnregisterClassA(cls.lpszClassName, cls.hInstance);