Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e65813a5
Commit
e65813a5
authored
Sep 23, 2021
by
Connor McAdams
Committed by
Alexandre Julliard
Sep 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add missing winevents to test_EndDialog() message sequences.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f7c94fa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
msg.c
dlls/user32/tests/msg.c
+10
-4
No files found.
dlls/user32/tests/msg.c
View file @
e65813a5
...
...
@@ -14400,11 +14400,13 @@ static void test_dialog_messages(void)
static
void
test_enddialog_seq
(
HWND
dialog
,
HWND
owner
)
{
const
struct
message
seq
[]
=
{
{
EVENT_OBJECT_STATECHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_ENABLE
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
HCBT_ACTIVATE
,
hook
|
wparam
,
(
WPARAM
)
owner
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
lparam
,
WA_INACTIVE
,
(
LPARAM
)
owner
},
{
WM_ACTIVATE
,
sent
|
wparam
|
lparam
,
WA_INACTIVE
,
(
LPARAM
)
owner
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
/* FIXME: Following two are optional because Wine sends WM_QUERYNEWPALETTE instead of WM_WINDOWPOSCHANGING */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_QUERYNEWPALETTE
,
sent
|
optional
},
...
...
@@ -14413,6 +14415,7 @@ static void test_enddialog_seq(HWND dialog, HWND owner)
{
WM_ACTIVATE
,
sent
|
wparam
|
lparam
,
WA_ACTIVE
,
(
LPARAM
)
dialog
},
{
HCBT_SETFOCUS
,
hook
|
wparam
,
(
WPARAM
)
owner
},
{
WM_KILLFOCUS
,
sent
|
wparam
,
(
WPARAM
)
owner
},
{
EVENT_OBJECT_FOCUS
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_SETFOCUS
,
sent
|
defwinproc
|
wparam
,
(
WPARAM
)
dialog
},
{
0
}
};
...
...
@@ -14425,15 +14428,18 @@ static void test_enddialog_seq(HWND dialog, HWND owner)
static
void
test_enddialog_seq2
(
HWND
dialog
,
HWND
owner
)
{
const
struct
message
seq
[]
=
{
{
EVENT_OBJECT_STATECHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_ENABLE
,
parent
|
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
HCBT_ACTIVATE
,
hook
|
wparam
,
(
WPARAM
)
owner
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
lparam
,
WA_INACTIVE
,
(
LPARAM
)
owner
},
{
WM_ACTIVATE
,
sent
|
wparam
|
lparam
,
WA_INACTIVE
,
(
LPARAM
)
owner
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
|
wparam
,
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
|
wparam
,
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
HCBT_SETFOCUS
,
hook
|
wparam
,
(
WPARAM
)
owner
},
{
WM_KILLFOCUS
,
sent
|
wparam
,
(
WPARAM
)
owner
},
{
EVENT_OBJECT_FOCUS
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_SETFOCUS
,
sent
|
parent
|
defwinproc
|
wparam
,
(
WPARAM
)
dialog
},
{
0
}
};
...
...
@@ -18598,6 +18604,10 @@ START_TEST(msg)
test_SetWindowRgn
();
test_sys_menu
();
test_dialog_messages
();
test_EndDialog
();
test_nullCallback
();
test_dbcs_wm_char
();
test_unicode_wm_char
();
/* Fix message sequences before removing 4 lines below */
if
(
pUnhookWinEvent
&&
hEvent_hook
)
...
...
@@ -18608,10 +18618,6 @@ START_TEST(msg)
}
hEvent_hook
=
0
;
test_EndDialog
();
test_nullCallback
();
test_dbcs_wm_char
();
test_unicode_wm_char
();
test_menu_messages
();
test_paintingloop
();
test_defwinproc
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment