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
2f26e385
Commit
2f26e385
authored
Oct 11, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Oct 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Make sure to allow setting the foreground window.
parent
b6b9ea76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
winstation.c
dlls/user32/tests/winstation.c
+17
-1
No files found.
dlls/user32/tests/winstation.c
View file @
2f26e385
...
...
@@ -765,7 +765,7 @@ static void test_foregroundwindow(void)
int
thread_desk_id
,
input_desk_id
,
hwnd_id
;
WNDCLASSA
wclass
;
wnd_param
param
;
DWORD
ret
;
DWORD
ret
,
timeout
,
timeout_old
;
char
win_text
[
1024
];
#define DESKTOPS 2
...
...
@@ -803,6 +803,16 @@ static void test_foregroundwindow(void)
trace
(
"hwnd0 %p hwnd1 %p partner0 %p partner1 %p
\n
"
,
hwnds
[
0
],
hwnds
[
1
],
partners
[
0
],
partners
[
1
]);
ret
=
SystemParametersInfo
(
SPI_GETFOREGROUNDLOCKTIMEOUT
,
0
,
&
timeout_old
,
0
);
ok
(
ret
,
"get foreground lock timeout failed!
\n
"
);
trace
(
"old timeout %d
\n
"
,
timeout_old
);
timeout
=
0
;
ret
=
SystemParametersInfo
(
SPI_SETFOREGROUNDLOCKTIMEOUT
,
0
,
0
,
SPIF_SENDCHANGE
|
SPIF_UPDATEINIFILE
);
ok
(
ret
,
"set foreground lock timeout failed!
\n
"
);
ret
=
SystemParametersInfo
(
SPI_GETFOREGROUNDLOCKTIMEOUT
,
0
,
&
timeout
,
0
);
ok
(
ret
,
"get foreground lock timeout failed!
\n
"
);
ok
(
timeout
==
0
,
"unexpected timeout %d
\n
"
,
timeout
);
for
(
hwnd_id
=
0
;
hwnd_id
<
DESKTOPS
;
hwnd_id
++
)
for
(
thread_desk_id
=
0
;
thread_desk_id
<
DESKTOPS
;
thread_desk_id
++
)
for
(
input_desk_id
=
0
;
input_desk_id
<
DESKTOPS
;
input_desk_id
++
)
...
...
@@ -864,6 +874,12 @@ static void test_foregroundwindow(void)
ret
=
SwitchDesktop
(
hdesks
[
0
]);
ok
(
ret
,
"switch desktop failed!
\n
"
);
CloseDesktop
(
hdesks
[
1
]);
ret
=
SystemParametersInfo
(
SPI_SETFOREGROUNDLOCKTIMEOUT
,
0
,
UlongToPtr
(
timeout_old
),
SPIF_SENDCHANGE
|
SPIF_UPDATEINIFILE
);
ok
(
ret
,
"set foreground lock timeout failed!
\n
"
);
ret
=
SystemParametersInfo
(
SPI_GETFOREGROUNDLOCKTIMEOUT
,
0
,
&
timeout
,
0
);
ok
(
ret
,
"get foreground lock timeout failed!
\n
"
);
ok
(
timeout
==
timeout_old
,
"unexpected timeout %d
\n
"
,
timeout
);
}
START_TEST
(
winstation
)
...
...
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