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
61a92af5
Commit
61a92af5
authored
Mar 24, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Workaround SetForegroundWindow failure due to foreground lock timeout.
parent
e3a94656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
win.c
dlls/user32/tests/win.c
+29
-12
No files found.
dlls/user32/tests/win.c
View file @
61a92af5
...
...
@@ -3728,13 +3728,10 @@ todo_wine
check_active_state
(
parent
,
0
,
parent
);
bret
=
SetForegroundWindow
(
popup
);
todo_wine
{
ok
(
bret
||
broken
(
!
bret
),
"SetForegroundWindow() failed
\n
"
);
if
(
!
bret
)
check_active_state
(
popup
,
0
,
popup
);
else
todo_wine
ok
(
bret
,
"SetForegroundWindow() failed
\n
"
);
if
(
bret
)
check_active_state
(
popup
,
popup
,
popup
);
}
ok
(
DestroyWindow
(
parent
),
"DestroyWindow() failed
\n
"
);
...
...
@@ -7507,6 +7504,32 @@ START_TEST(win)
if
(
!
RegisterWindowClasses
())
assert
(
0
);
hwndMain
=
CreateWindowExA
(
/*WS_EX_TOOLWINDOW*/
0
,
"MainWindowClass"
,
"Main window"
,
WS_CAPTION
|
WS_SYSMENU
|
WS_MINIMIZEBOX
|
WS_MAXIMIZEBOX
|
WS_POPUP
|
WS_VISIBLE
,
100
,
100
,
200
,
200
,
0
,
0
,
GetModuleHandleA
(
NULL
),
NULL
);
assert
(
hwndMain
);
if
(
!
SetForegroundWindow
(
hwndMain
))
{
/* workaround for foreground lock timeout */
INPUT
input
[
2
];
UINT
events_no
;
memset
(
input
,
0
,
sizeof
(
input
));
input
[
0
].
type
=
INPUT_MOUSE
;
input
[
0
].
mi
.
dx
=
101
;
input
[
0
].
mi
.
dy
=
101
;
input
[
0
].
mi
.
dwFlags
=
MOUSEEVENTF_LEFTDOWN
;
input
[
0
].
type
=
INPUT_MOUSE
;
input
[
0
].
mi
.
dx
=
101
;
input
[
0
].
mi
.
dy
=
101
;
input
[
0
].
mi
.
dwFlags
=
MOUSEEVENTF_LEFTUP
;
events_no
=
SendInput
(
2
,
input
,
sizeof
(
input
[
0
]));
ok
(
events_no
==
2
,
"SendInput returned %d
\n
"
,
events_no
);
ok
(
SetForegroundWindow
(
hwndMain
),
"SetForegroundWindow failed
\n
"
);
}
SetLastError
(
0xdeafbeef
);
GetWindowLongPtrW
(
GetDesktopWindow
(),
GWLP_WNDPROC
);
is_win9x
=
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -7518,17 +7541,11 @@ START_TEST(win)
test_FindWindowEx
();
test_SetParent
();
hwndMain
=
CreateWindowExA
(
/*WS_EX_TOOLWINDOW*/
0
,
"MainWindowClass"
,
"Main window"
,
WS_CAPTION
|
WS_SYSMENU
|
WS_MINIMIZEBOX
|
WS_MAXIMIZEBOX
|
WS_POPUP
,
100
,
100
,
200
,
200
,
0
,
0
,
GetModuleHandleA
(
NULL
),
NULL
);
hwndMain2
=
CreateWindowExA
(
/*WS_EX_TOOLWINDOW*/
0
,
"MainWindowClass"
,
"Main window 2"
,
WS_CAPTION
|
WS_SYSMENU
|
WS_MINIMIZEBOX
|
WS_MAXIMIZEBOX
|
WS_POPUP
,
100
,
100
,
200
,
200
,
0
,
0
,
GetModuleHandleA
(
NULL
),
NULL
);
assert
(
hwndMain
);
assert
(
hwndMain2
);
our_pid
=
GetWindowThreadProcessId
(
hwndMain
,
NULL
);
...
...
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