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
f9ecd739
Commit
f9ecd739
authored
Jun 04, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix a test failure on Win95.
parent
96ef5d38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sysparams.c
dlls/user32/tests/sysparams.c
+4
-2
No files found.
dlls/user32/tests/sysparams.c
View file @
f9ecd739
...
...
@@ -2731,12 +2731,14 @@ static void test_EnumDisplaySettings(void)
DWORD
num
;
memset
(
&
devmode
,
0
,
sizeof
(
devmode
));
devmode
.
dmSize
=
sizeof
(
devmode
);
/* Win95 doesn't handle ENUM_CURRENT_SETTINGS correctly */
EnumDisplaySettings
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
devmode
);
hdc
=
GetDC
(
0
);
val
=
GetDeviceCaps
(
hdc
,
BITSPIXEL
);
ok
(
devmode
.
dmBitsPerPel
==
val
,
"GetDeviceCaps(BITSPIXEL) returned %d, EnumDisplaySettings returned %d
\n
"
,
ok
(
devmode
.
dmBitsPerPel
==
val
||
broken
(
devmode
.
dmDeviceName
[
0
]
==
0
),
/* Win95 */
"GetDeviceCaps(BITSPIXEL) returned %d, EnumDisplaySettings returned %d
\n
"
,
val
,
devmode
.
dmBitsPerPel
);
val
=
GetDeviceCaps
(
hdc
,
NUMCOLORS
);
...
...
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