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
ae0dc70b
Commit
ae0dc70b
authored
Feb 26, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Feb 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Improve RegDeleteTree tests.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dcc16c7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
registry.c
dlls/advapi32/tests/registry.c
+7
-4
No files found.
dlls/advapi32/tests/registry.c
View file @
ae0dc70b
...
...
@@ -41,7 +41,7 @@ static const char * sTestpath2 = "%FOO%\\subdir1";
static
const
DWORD
ptr_size
=
8
*
sizeof
(
void
*
);
static
DWORD
(
WINAPI
*
pRegGetValueA
)(
HKEY
,
LPCSTR
,
LPCSTR
,
DWORD
,
LPDWORD
,
PVOID
,
LPDWORD
);
static
DWORD
(
WINAPI
*
pRegDeleteTreeA
)(
HKEY
,
LPCSTR
);
static
LONG
(
WINAPI
*
pRegDeleteTreeA
)(
HKEY
,
const
char
*
);
static
DWORD
(
WINAPI
*
pRegDeleteKeyExA
)(
HKEY
,
LPCSTR
,
REGSAM
,
DWORD
);
static
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
,
PBOOL
);
static
NTSTATUS
(
WINAPI
*
pNtDeleteKey
)(
HANDLE
);
...
...
@@ -2083,6 +2083,7 @@ static void test_reg_delete_tree(void)
{
CHAR
buffer
[
MAX_PATH
];
HKEY
subkey
,
subkey2
;
DWORD
dwsize
,
type
;
LONG
size
,
ret
;
if
(
!
pRegDeleteTreeA
)
{
...
...
@@ -2128,7 +2129,9 @@ static void test_reg_delete_tree(void)
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
ret
=
RegCloseKey
(
subkey2
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
ret
=
RegSetValueA
(
subkey
,
"value"
,
REG_SZ
,
"data2"
,
5
);
ret
=
RegSetValueA
(
subkey
,
NULL
,
REG_SZ
,
"data"
,
4
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
ret
=
RegSetValueExA
(
subkey
,
"value"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"data2"
,
5
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
ret
=
pRegDeleteTreeA
(
subkey
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
ret
);
...
...
@@ -2143,8 +2146,8 @@ static void test_reg_delete_tree(void)
ok
(
ret
==
ERROR_SUCCESS
,
"Default value of subkey is not present
\n
"
);
ok
(
!
buffer
[
0
],
"Expected length 0 got length %u(%s)
\n
"
,
lstrlenA
(
buffer
),
buffer
);
size
=
MAX_PATH
;
ok
(
RegQueryValue
A
(
subkey
,
"value"
,
buffer
,
&
size
),
dw
size
=
MAX_PATH
;
ok
(
RegQueryValue
ExA
(
subkey
,
"value"
,
NULL
,
&
type
,
(
BYTE
*
)
buffer
,
&
dw
size
),
"Value is still present
\n
"
);
ret
=
pRegDeleteTreeA
(
hkey_main
,
"not-here"
);
...
...
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