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
5786705a
Commit
5786705a
authored
Mar 24, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Initialize input parameters (Valgrind).
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fbec6c54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
registry.c
dlls/advapi32/tests/registry.c
+8
-7
No files found.
dlls/advapi32/tests/registry.c
View file @
5786705a
...
...
@@ -771,11 +771,10 @@ cleanup:
static
void
test_query_value_ex
(
void
)
{
DWORD
ret
;
DWORD
size
;
DWORD
type
;
DWORD
ret
,
size
,
type
;
BYTE
buffer
[
10
];
size
=
sizeof
(
buffer
);
ret
=
RegQueryValueExA
(
hkey_main
,
"TP1_SZ"
,
NULL
,
&
type
,
NULL
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
ok
(
size
==
strlen
(
sTestpath1
)
+
1
,
"(%d,%d)
\n
"
,
(
DWORD
)
strlen
(
sTestpath1
)
+
1
,
size
);
...
...
@@ -1832,7 +1831,7 @@ static void test_reg_query_info(void)
ok
(
classbufferW
[
0
]
==
0x5555
,
"classbufferW[0] = 0x%x
\n
"
,
classbufferW
[
0
]);
/* empty key */
sdlen
=
0
;
sdlen
=
classlen
=
0
;
ret
=
RegQueryInfoKeyA
(
subkey
,
NULL
,
&
classlen
,
NULL
,
&
subkeys
,
&
maxsubkeylen
,
&
maxclasslen
,
&
values
,
&
maxvaluenamelen
,
&
maxvaluelen
,
&
sdlen
,
&
lastwrite
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret = %d
\n
"
,
ret
);
ok
(
classlen
==
strlen
(
subkey_class
),
"classlen = %u
\n
"
,
classlen
);
...
...
@@ -1846,7 +1845,7 @@ static void test_reg_query_info(void)
ok
(
lastwrite
.
dwLowDateTime
!=
0
,
"lastwrite.dwLowDateTime = %u
\n
"
,
lastwrite
.
dwLowDateTime
);
ok
(
lastwrite
.
dwHighDateTime
!=
0
,
"lastwrite.dwHighDateTime = %u
\n
"
,
lastwrite
.
dwHighDateTime
);
sdlen
=
0
;
sdlen
=
classlen
=
0
;
ret
=
RegQueryInfoKeyW
(
subkey
,
NULL
,
&
classlen
,
NULL
,
&
subkeys
,
&
maxsubkeylen
,
&
maxclasslen
,
&
values
,
&
maxvaluenamelen
,
&
maxvaluelen
,
&
sdlen
,
&
lastwrite
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret = %d
\n
"
,
ret
);
ok
(
classlen
==
strlen
(
subkey_class
),
"classlen = %u
\n
"
,
classlen
);
...
...
@@ -1867,7 +1866,7 @@ static void test_reg_query_info(void)
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
/* with subkey & default value */
sdlen
=
0
;
sdlen
=
classlen
=
0
;
ret
=
RegQueryInfoKeyA
(
subkey
,
NULL
,
&
classlen
,
NULL
,
&
subkeys
,
&
maxsubkeylen
,
&
maxclasslen
,
&
values
,
&
maxvaluenamelen
,
&
maxvaluelen
,
&
sdlen
,
&
lastwrite
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret = %d
\n
"
,
ret
);
ok
(
classlen
==
strlen
(
subkey_class
),
"classlen = %u
\n
"
,
classlen
);
...
...
@@ -1881,7 +1880,7 @@ static void test_reg_query_info(void)
ok
(
lastwrite
.
dwLowDateTime
!=
0
,
"lastwrite.dwLowDateTime = %u
\n
"
,
lastwrite
.
dwLowDateTime
);
ok
(
lastwrite
.
dwHighDateTime
!=
0
,
"lastwrite.dwHighDateTime = %u
\n
"
,
lastwrite
.
dwHighDateTime
);
sdlen
=
0
;
sdlen
=
classlen
=
0
;
ret
=
RegQueryInfoKeyW
(
subkey
,
NULL
,
&
classlen
,
NULL
,
&
subkeys
,
&
maxsubkeylen
,
&
maxclasslen
,
&
values
,
&
maxvaluenamelen
,
&
maxvaluelen
,
&
sdlen
,
&
lastwrite
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret = %d
\n
"
,
ret
);
ok
(
classlen
==
strlen
(
subkey_class
),
"classlen = %u
\n
"
,
classlen
);
...
...
@@ -1902,12 +1901,14 @@ static void test_reg_query_info(void)
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
/* with named value */
classlen
=
0
;
ret
=
RegQueryInfoKeyA
(
subkey
,
NULL
,
&
classlen
,
NULL
,
&
subkeys
,
&
maxsubkeylen
,
&
maxclasslen
,
&
values
,
&
maxvaluenamelen
,
&
maxvaluelen
,
&
sdlen
,
&
lastwrite
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret = %d
\n
"
,
ret
);
ok
(
values
==
3
,
"values = %u
\n
"
,
values
);
ok
(
maxvaluenamelen
==
strlen
(
"value one"
),
"maxvaluenamelen = %u
\n
"
,
maxvaluenamelen
);
ok
(
maxvaluelen
==
sizeof
(
"second value data"
)
*
sizeof
(
WCHAR
),
"maxvaluelen = %u
\n
"
,
maxvaluelen
);
classlen
=
0
;
ret
=
RegQueryInfoKeyW
(
subkey
,
NULL
,
&
classlen
,
NULL
,
&
subkeys
,
&
maxsubkeylen
,
&
maxclasslen
,
&
values
,
&
maxvaluenamelen
,
&
maxvaluelen
,
&
sdlen
,
&
lastwrite
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret = %d
\n
"
,
ret
);
ok
(
values
==
3
,
"values = %u
\n
"
,
values
);
...
...
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