[PATCH 1/4] user32/tests: Fix occasional failure in test_messages() message sequences.
Connor McAdams
cmcadams at codeweavers.com
Tue Sep 14 21:57:24 CDT 2021
Some window messages in the WmShowPopupExtremeLocationSeq message
sequence aren't always sent on Win8+.
Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
---
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 d61c813b492..35351035120 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -1108,8 +1108,8 @@ static const struct message WmShowPopupExtremeLocationSeq[] = {
{ EVENT_OBJECT_FOCUS, winevent_hook|wparam|lparam, OBJID_CLIENT, 0 },
{ HCBT_SETFOCUS, hook },
{ WM_SETFOCUS, sent|defwinproc },
- { WM_NCPAINT, sent|wparam, 1 },
- { WM_ERASEBKGND, sent },
+ { WM_NCPAINT, sent|wparam|optional, 1 }, /* Not always sent on Win8+ */
+ { WM_ERASEBKGND, sent|optional }, /* Not always sent on Win8+ */
{ WM_WINDOWPOSCHANGED, sent },
/* occasionally received on test machines */
{ WM_NCPAINT, sent|optional },
--
2.25.1
More information about the wine-devel
mailing list