Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2c99d4b2
Commit
2c99d4b2
authored
Apr 22, 2007
by
Stefan Leichter
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: More tests for RegDeleteTreeA.
parent
28710419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
registry.c
dlls/advapi32/tests/registry.c
+18
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
2c99d4b2
...
...
@@ -1151,15 +1151,33 @@ static void test_reg_delete_tree(void)
ok
(
!
RegQueryValueA
(
subkey
,
NULL
,
buffer
,
&
size
),
"Default value of subkey not longer present
\n
"
);
ret
=
RegCreateKeyA
(
subkey
,
"subkey2"
,
&
subkey2
);
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
=
RegCreateKeyA
(
subkey
,
"subkey3"
,
&
subkey2
);
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
);
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
);
ok
(
!
RegOpenKeyA
(
hkey_main
,
"subkey"
,
&
subkey
),
"subkey was deleted
\n
"
);
ok
(
RegOpenKeyA
(
subkey
,
"subkey2"
,
&
subkey2
),
"subkey2 was not deleted
\n
"
);
ok
(
RegOpenKeyA
(
subkey
,
"subkey3"
,
&
subkey2
),
"subkey3 was not deleted
\n
"
);
size
=
MAX_PATH
;
ret
=
RegQueryValueA
(
subkey
,
NULL
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"Default value of subkey is not present
\n
"
);
ok
(
!
lstrlenA
(
buffer
),
"Expected length 0 got length %u(%s)
\n
"
,
lstrlenA
(
buffer
),
buffer
);
size
=
MAX_PATH
;
ok
(
RegQueryValueA
(
subkey
,
"value"
,
buffer
,
&
size
),
"Value is still present
\n
"
);
ret
=
pRegDeleteTreeA
(
hkey_main
,
"not-here"
);
ok
(
ret
==
ERROR_FILE_NOT_FOUND
,
...
...
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