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
5935e950
Commit
5935e950
authored
Oct 16, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Properly test sdlen value.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
78bd9c98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
registry.c
dlls/advapi32/tests/registry.c
+8
-4
No files found.
dlls/advapi32/tests/registry.c
View file @
5935e950
...
...
@@ -1803,6 +1803,7 @@ static void test_reg_query_info(void)
ok
(
classbufferW
[
0
]
==
0x5555
,
"classbufferW[0] = 0x%x
\n
"
,
classbufferW
[
0
]);
/* empty key */
sdlen
=
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
);
...
...
@@ -1812,10 +1813,11 @@ static void test_reg_query_info(void)
ok
(
values
==
0
,
"values = %u
\n
"
,
values
);
ok
(
maxvaluenamelen
==
0
,
"maxvaluenamelen = %u
\n
"
,
maxvaluenamelen
);
ok
(
maxvaluelen
==
0
,
"maxvaluelen = %u
\n
"
,
maxvaluelen
);
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
todo_wine
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
ok
(
lastwrite
.
dwLowDateTime
!=
0
,
"lastwrite.dwLowDateTime = %u
\n
"
,
lastwrite
.
dwLowDateTime
);
ok
(
lastwrite
.
dwHighDateTime
!=
0
,
"lastwrite.dwHighDateTime = %u
\n
"
,
lastwrite
.
dwHighDateTime
);
sdlen
=
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
);
...
...
@@ -1825,7 +1827,7 @@ static void test_reg_query_info(void)
ok
(
values
==
0
,
"values = %u
\n
"
,
values
);
ok
(
maxvaluenamelen
==
0
,
"maxvaluenamelen = %u
\n
"
,
maxvaluenamelen
);
ok
(
maxvaluelen
==
0
,
"maxvaluelen = %u
\n
"
,
maxvaluelen
);
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
todo_wine
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
ok
(
lastwrite
.
dwLowDateTime
!=
0
,
"lastwrite.dwLowDateTime = %u
\n
"
,
lastwrite
.
dwLowDateTime
);
ok
(
lastwrite
.
dwHighDateTime
!=
0
,
"lastwrite.dwHighDateTime = %u
\n
"
,
lastwrite
.
dwHighDateTime
);
...
...
@@ -1836,6 +1838,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
;
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
);
...
...
@@ -1845,10 +1848,11 @@ static void test_reg_query_info(void)
ok
(
values
==
1
,
"values = %u
\n
"
,
values
);
ok
(
maxvaluenamelen
==
0
,
"maxvaluenamelen = %u
\n
"
,
maxvaluenamelen
);
ok
(
maxvaluelen
==
sizeof
(
"data"
)
*
sizeof
(
WCHAR
),
"maxvaluelen = %u
\n
"
,
maxvaluelen
);
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
todo_wine
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
ok
(
lastwrite
.
dwLowDateTime
!=
0
,
"lastwrite.dwLowDateTime = %u
\n
"
,
lastwrite
.
dwLowDateTime
);
ok
(
lastwrite
.
dwHighDateTime
!=
0
,
"lastwrite.dwHighDateTime = %u
\n
"
,
lastwrite
.
dwHighDateTime
);
sdlen
=
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
);
...
...
@@ -1858,7 +1862,7 @@ static void test_reg_query_info(void)
ok
(
values
==
1
,
"values = %u
\n
"
,
values
);
ok
(
maxvaluenamelen
==
0
,
"maxvaluenamelen = %u
\n
"
,
maxvaluenamelen
);
ok
(
maxvaluelen
==
sizeof
(
"data"
)
*
sizeof
(
WCHAR
),
"maxvaluelen = %u
\n
"
,
maxvaluelen
);
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
todo_wine
ok
(
sdlen
!=
0
,
"sdlen = %u
\n
"
,
sdlen
);
ok
(
lastwrite
.
dwLowDateTime
!=
0
,
"lastwrite.dwLowDateTime = %u
\n
"
,
lastwrite
.
dwLowDateTime
);
ok
(
lastwrite
.
dwHighDateTime
!=
0
,
"lastwrite.dwHighDateTime = %u
\n
"
,
lastwrite
.
dwHighDateTime
);
...
...
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