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
c2c3b516
Commit
c2c3b516
authored
Feb 14, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Feb 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add a test to cover second RegSetValueW Parameter (gcov).
parent
7476bb05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
registry.c
dlls/advapi32/tests/registry.c
+6
-1
No files found.
dlls/advapi32/tests/registry.c
View file @
c2c3b516
...
@@ -353,7 +353,12 @@ static void test_set_value(void)
...
@@ -353,7 +353,12 @@ static void test_set_value(void)
test_hkey_main_Value_A
(
NULL
,
string1A
,
sizeof
(
string1A
));
test_hkey_main_Value_A
(
NULL
,
string1A
,
sizeof
(
string1A
));
test_hkey_main_Value_W
(
NULL
,
string1W
,
sizeof
(
string1W
));
test_hkey_main_Value_W
(
NULL
,
string1W
,
sizeof
(
string1W
));
/* RegSetValueA ignores the size passed in */
ret
=
RegSetValueW
(
hkey_main
,
name1W
,
REG_SZ
,
string1W
,
sizeof
(
string1W
));
ok
(
ret
==
ERROR_SUCCESS
,
"RegSetValueW failed: %d, GLE=%d
\n
"
,
ret
,
GetLastError
());
test_hkey_main_Value_A
(
name1A
,
string1A
,
sizeof
(
string1A
));
test_hkey_main_Value_W
(
name1W
,
string1W
,
sizeof
(
string1W
));
/* RegSetValueW ignores the size passed in */
ret
=
RegSetValueW
(
hkey_main
,
NULL
,
REG_SZ
,
string1W
,
4
*
sizeof
(
string1W
[
0
]));
ret
=
RegSetValueW
(
hkey_main
,
NULL
,
REG_SZ
,
string1W
,
4
*
sizeof
(
string1W
[
0
]));
ok
(
ret
==
ERROR_SUCCESS
,
"RegSetValueW failed: %d, GLE=%d
\n
"
,
ret
,
GetLastError
());
ok
(
ret
==
ERROR_SUCCESS
,
"RegSetValueW failed: %d, GLE=%d
\n
"
,
ret
,
GetLastError
());
test_hkey_main_Value_A
(
NULL
,
string1A
,
sizeof
(
string1A
));
test_hkey_main_Value_A
(
NULL
,
string1A
,
sizeof
(
string1A
));
...
...
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