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
333f83ff
Commit
333f83ff
authored
May 28, 2008
by
James Hawkins
Committed by
Alexandre Julliard
May 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix two tests that fail in win2k3 and above.
parent
c81d36e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
sysparams.c
dlls/user32/tests/sysparams.c
+8
-2
No files found.
dlls/user32/tests/sysparams.c
View file @
333f83ff
...
...
@@ -1917,9 +1917,12 @@ static void test_SPI_SETLOWPOWERACTIVE( void ) /* 85 */
SPI_SETLOWPOWERACTIVE_VALNAME
,
vals
[
i
]
?
"1"
:
"0"
);
/* SPI_SETLOWPOWERACTIVE is not persistent in win2k3 and above */
rc
=
SystemParametersInfoA
(
SPI_GETLOWPOWERACTIVE
,
0
,
&
v
,
0
);
ok
(
rc
!=
0
,
"%d: rc=%d err=%d
\n
"
,
i
,
rc
,
GetLastError
());
eq
(
v
,
vals
[
i
],
"SPI_GETLOWPOWERACTIVE"
,
"%d"
);
ok
(
v
==
vals
[
i
]
||
v
==
0
,
/* win2k3 */
"SPI_GETLOWPOWERACTIVE: got %d instead of 0 or %d
\n
"
,
v
,
vals
[
i
]);
}
rc
=
SystemParametersInfoA
(
SPI_SETLOWPOWERACTIVE
,
old_b
,
0
,
SPIF_UPDATEINIFILE
);
...
...
@@ -1951,9 +1954,12 @@ static void test_SPI_SETPOWEROFFACTIVE( void ) /* 86 */
SPI_SETPOWEROFFACTIVE_VALNAME
,
vals
[
i
]
?
"1"
:
"0"
);
/* SPI_SETPOWEROFFACTIVE is not persistent in win2k3 and above */
rc
=
SystemParametersInfoA
(
SPI_GETPOWEROFFACTIVE
,
0
,
&
v
,
0
);
ok
(
rc
!=
0
,
"%d: rc=%d err=%d
\n
"
,
i
,
rc
,
GetLastError
());
eq
(
v
,
vals
[
i
],
"SPI_GETPOWEROFFACTIVE"
,
"%d"
);
ok
(
v
==
vals
[
i
]
||
v
==
0
,
/* win2k3 */
"SPI_GETPOWEROFFACTIVE: got %d instead of 0 or %d
\n
"
,
v
,
vals
[
i
]);
}
rc
=
SystemParametersInfoA
(
SPI_SETPOWEROFFACTIVE
,
old_b
,
0
,
SPIF_UPDATEINIFILE
);
...
...
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