Connor McAdams : user32/tests: Fix occasional failure in test_messages() message sequences.
Alexandre Julliard
julliard at winehq.org
Wed Sep 15 16:21:33 CDT 2021
Module: wine
Branch: master
Commit: 90ab555bbc31a88e07e102852a12a4d9ffc45c5b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=90ab555bbc31a88e07e102852a12a4d9ffc45c5b
Author: Connor McAdams <cmcadams at codeweavers.com>
Date: Wed Sep 15 03:00:13 2021 -0400
user32/tests: Fix occasional failure in test_messages() message sequences.
Some window messages in the WmShowPopupExtremeLocationSeq message
sequence aren't always sent on Win8+.
Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 8e523edd5ba..e7728ee151f 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 },
More information about the wine-cvs
mailing list