From bf6f255c1439ae44b22d914a4fe5bee3bfc4c381 Mon Sep 17 00:00:00 2001 From: Esme Povirk Date: Sat, 16 Sep 2023 12:27:56 -0500 Subject: [PATCH] user32/tests: Account for some messages from dual-monitor setups. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54031 --- dlls/user32/tests/msg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index b5c4de23bc1..90bbe6146cd 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -19560,6 +19560,13 @@ static const struct message send_message_3[] = { { WM_USER+1, sent|wparam|lparam, 0, 0 }, { 0 } }; +static const struct message send_message_5[] = { + { WM_WINDOWPOSCHANGING, sent|wparam|lparam|optional, 0, SWP_NOACTIVATE|SWP_NOZORDER }, /* win7+ dual monitor */ + { WM_GETMINMAXINFO, sent|defwinproc|optional }, /* win7+ dual monitor */ + { WM_WINDOWPOSCHANGING, sent|wparam|lparam|optional, 0, SWP_NOACTIVATE|SWP_NOZORDER }, /* win7+ dual monitor */ + { WM_GETMINMAXINFO, sent|defwinproc|optional }, /* win7+ dual monitor */ + { 0 } +}; static DWORD WINAPI SendMessage_thread_1(void *param) { @@ -19693,7 +19700,7 @@ static void test_SendMessage_other_thread(int thread_n) while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) { ok(ignore_message(msg.message), "got unexpected message %04x from PeekMessageA\n", msg.message); } - ok_sequence(WmEmptySeq, "SendMessage from other thread 5", thread_n == 2); + ok_sequence(send_message_5, "SendMessage from other thread 5", thread_n == 2); ret = GetQueueStatus(QS_SENDMESSAGE|QS_POSTMESSAGE); ok(ret == 0, "wrong status %08lx\n", ret);