[PATCH v2 1/5] user32/tests: Fix occasional failure in ShowWindow() message sequences.

Connor McAdams cmcadams at codeweavers.com
Wed Sep 15 00:37:49 CDT 2021


Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
---
-v2: Add this patch to fix test failure.

 dlls/user32/tests/msg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index d61c813b492..5772cd0f612 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -13405,6 +13405,7 @@ static const struct message WmRestore_3[] = {
     { HCBT_ACTIVATE, hook|optional }, /* win2003 doesn't send it */
     { EVENT_SYSTEM_FOREGROUND, winevent_hook|wparam|lparam|winevent_hook_todo, 0, 0 },
     { WM_WINDOWPOSCHANGING, sent|wparam|optional, SWP_NOSIZE|SWP_NOMOVE }, /* win2003 doesn't send it */
+    { WM_WINDOWPOSCHANGED, sent|wparam|optional, SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE }, /* Win8+ sometimes sends this. */
     { HCBT_SETFOCUS, hook|optional }, /* win2003 doesn't send it */
     { EVENT_OBJECT_FOCUS, winevent_hook|wparam|lparam|winevent_hook_todo, OBJID_CLIENT, 0 },
     { WM_WINDOWPOSCHANGED, sent|wparam, SWP_FRAMECHANGED|SWP_NOCOPYBITS|SWP_STATECHANGED },
-- 
2.25.1




More information about the wine-devel mailing list