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
068cf6f0
Commit
068cf6f0
authored
Feb 22, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Feb 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix a test failure on w7u_2qxl TestBot VM.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1d1665ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
monitor.c
dlls/user32/tests/monitor.c
+4
-3
No files found.
dlls/user32/tests/monitor.c
View file @
068cf6f0
...
@@ -743,17 +743,18 @@ static void test_ChangeDisplaySettingsEx(void)
...
@@ -743,17 +743,18 @@ static void test_ChangeDisplaySettingsEx(void)
{
{
dm
.
dmPosition
=
position
;
dm
.
dmPosition
=
position
;
dm
.
dmFields
|=
DM_POSITION
;
dm
.
dmFields
|=
DM_POSITION
;
res
=
ChangeDisplaySettingsExA
(
devices
[
device
].
name
,
&
dm
,
NULL
,
CDS_RESET
,
NULL
);
/* Reattach detached non-primary adapters, otherwise ChangeDisplaySettingsExA with only CDS_RESET fails */
/* Reattach detached non-primary adapters, otherwise ChangeDisplaySettingsExA with only CDS_RESET fails */
if
(
mode
==
0
&&
device
)
if
(
mode
==
0
&&
device
)
{
{
todo_wine
ok
(
res
==
DISP_CHANGE_FAILED
,
"ChangeDisplaySettingsExA %s mode %d returned unexpected %d
\n
"
,
devices
[
device
].
name
,
mode
,
res
);
res
=
ChangeDisplaySettingsExA
(
devices
[
device
].
name
,
&
dm
,
NULL
,
CDS_UPDATEREGISTRY
|
CDS_NORESET
,
NULL
);
res
=
ChangeDisplaySettingsExA
(
devices
[
device
].
name
,
&
dm
,
NULL
,
CDS_UPDATEREGISTRY
|
CDS_NORESET
,
NULL
);
ok
(
res
==
DISP_CHANGE_SUCCESSFUL
,
"ChangeDisplaySettingsExA %s mode %d returned unexpected %d
\n
"
,
ok
(
res
==
DISP_CHANGE_SUCCESSFUL
,
"ChangeDisplaySettingsExA %s mode %d returned unexpected %d
\n
"
,
devices
[
device
].
name
,
mode
,
res
);
devices
[
device
].
name
,
mode
,
res
);
res
=
ChangeDisplaySettingsExA
(
NULL
,
NULL
,
NULL
,
0
,
NULL
);
res
=
ChangeDisplaySettingsExA
(
NULL
,
NULL
,
NULL
,
0
,
NULL
);
}
}
else
{
res
=
ChangeDisplaySettingsExA
(
devices
[
device
].
name
,
&
dm
,
NULL
,
CDS_RESET
,
NULL
);
}
ok
(
res
==
DISP_CHANGE_SUCCESSFUL
||
ok
(
res
==
DISP_CHANGE_SUCCESSFUL
||
broken
(
res
==
DISP_CHANGE_FAILED
),
/* TestBots using VGA driver can't change to some modes */
broken
(
res
==
DISP_CHANGE_FAILED
),
/* TestBots using VGA driver can't change to some modes */
...
...
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