Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0702d31c
Commit
0702d31c
authored
Jan 09, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some test failures on Windows.
parent
62eaaa79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
msg.c
dlls/user32/tests/msg.c
+5
-3
No files found.
dlls/user32/tests/msg.c
View file @
0702d31c
...
...
@@ -13497,7 +13497,7 @@ static const struct message WmSetFocus_1[] = {
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
parent
|
optional
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
parent
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_ACTIVATEAPP
,
sent
|
wparam
|
parent
,
1
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
parent
,
1
},
{
WM_NCACTIVATE
,
sent
|
parent
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
parent
|
optional
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
parent
|
optional
},
{
WM_ACTIVATE
,
sent
|
wparam
|
parent
,
1
},
...
...
@@ -13573,7 +13573,8 @@ static void test_SetFocus(void)
SetLastError
(
0xdeadbeef
);
old_focus
=
SetFocus
((
HWND
)
0xdeadbeef
);
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
,
"expected ERROR_INVALID_WINDOW_HANDLE, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
||
broken
(
GetLastError
()
==
0xdeadbeef
),
"expected ERROR_INVALID_WINDOW_HANDLE, got %d
\n
"
,
GetLastError
());
while
(
PeekMessage
(
&
msg
,
NULL
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
ok_sequence
(
WmEmptySeq
,
"SetFocus on an invalid window"
,
FALSE
);
ok
(
old_focus
==
0
,
"expected old focus 0, got %p
\n
"
,
old_focus
);
...
...
@@ -13602,7 +13603,8 @@ static void test_SetFocus(void)
SetLastError
(
0xdeadbeef
);
old_active
=
SetActiveWindow
((
HWND
)
0xdeadbeef
);
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
,
"expected ERROR_INVALID_WINDOW_HANDLE, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
||
broken
(
GetLastError
()
==
0xdeadbeef
),
"expected ERROR_INVALID_WINDOW_HANDLE, got %d
\n
"
,
GetLastError
());
while
(
PeekMessage
(
&
msg
,
NULL
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
ok_sequence
(
WmEmptySeq
,
"SetActiveWindow on an invalid window"
,
FALSE
);
ok
(
old_active
==
0
,
"expected old focus 0, got %p
\n
"
,
old_active
);
...
...
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