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
f4ac836f
Commit
f4ac836f
authored
Oct 05, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/tests: It is perfectly valid for some sysparams registry fields
to not be set if they have their default value. This is the case on Windows for instance.
parent
33546e08
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sysparams.c
dlls/user/tests/sysparams.c
+7
-5
No files found.
dlls/user/tests/sysparams.c
View file @
f4ac836f
...
...
@@ -1466,18 +1466,20 @@ static void test_SPI_SETMINIMIZEDMETRICS( void ) /* 44 */
rc
=
SystemParametersInfoA
(
SPI_GETMINIMIZEDMETRICS
,
sizeof
(
MINIMIZEDMETRICS
),
&
lpMm_orig
,
FALSE
);
if
(
!
test_error_msg
(
rc
,
"SPI_{GET,SET}MINIMIZEDMETRICS"
))
return
;
/* test registry */
/* Test registry. Note that it is perfectly valid for some fields to
* not be set.
*/
regval
=
metricfromreg
(
SPI_MINIMIZEDMETRICS_REGKEY
,
SPI_MINWIDTH_VALNAME
,
dpi
);
ok
(
regval
==
lpMm_orig
.
iWidth
,
"wrong value in registry %d, expected %d
\n
"
,
ok
(
regval
==
-
1
||
regval
==
lpMm_orig
.
iWidth
,
"wrong value in registry %d, expected %d
\n
"
,
regval
,
lpMm_orig
.
iWidth
);
regval
=
metricfromreg
(
SPI_MINIMIZEDMETRICS_REGKEY
,
SPI_MINHORZGAP_VALNAME
,
dpi
);
ok
(
regval
==
lpMm_orig
.
iHorzGap
,
"wrong value in registry %d, expected %d
\n
"
,
ok
(
regval
==
-
1
||
regval
==
lpMm_orig
.
iHorzGap
,
"wrong value in registry %d, expected %d
\n
"
,
regval
,
lpMm_orig
.
iHorzGap
);
regval
=
metricfromreg
(
SPI_MINIMIZEDMETRICS_REGKEY
,
SPI_MINVERTGAP_VALNAME
,
dpi
);
ok
(
regval
==
lpMm_orig
.
iVertGap
,
"wrong value in registry %d, expected %d
\n
"
,
ok
(
regval
==
-
1
||
regval
==
lpMm_orig
.
iVertGap
,
"wrong value in registry %d, expected %d
\n
"
,
regval
,
lpMm_orig
.
iVertGap
);
regval
=
metricfromreg
(
SPI_MINIMIZEDMETRICS_REGKEY
,
SPI_MINARRANGE_VALNAME
,
dpi
);
ok
(
regval
==
lpMm_orig
.
iArrange
,
"wrong value in registry %d, expected %d
\n
"
,
ok
(
regval
==
-
1
||
regval
==
lpMm_orig
.
iArrange
,
"wrong value in registry %d, expected %d
\n
"
,
regval
,
lpMm_orig
.
iArrange
);
/* set some new values */
lpMm_cur
.
iWidth
=
180
;
...
...
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