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
0311b980
Commit
0311b980
authored
Nov 06, 2014
by
Jonathan Vollebregt
Committed by
Alexandre Julliard
Nov 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Test RegDeleteKey with empty string parameter.
parent
495b97f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
registry.c
dlls/advapi32/tests/registry.c
+10
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
0311b980
...
...
@@ -1372,6 +1372,7 @@ static void test_reg_close_key(void)
static
void
test_reg_delete_key
(
void
)
{
DWORD
ret
;
HKEY
key
;
ret
=
RegDeleteKeyA
(
hkey_main
,
NULL
);
...
...
@@ -1390,6 +1391,15 @@ static void test_reg_delete_key(void)
ret
==
ERROR_ACCESS_DENIED
||
ret
==
ERROR_BADKEY
,
/* Win95 */
"ret=%d
\n
"
,
ret
);
ret
=
RegCreateKeyA
(
hkey_main
,
"deleteme"
,
&
key
);
ok
(
ret
==
ERROR_SUCCESS
,
"Could not create key, got %d
\n
"
,
ret
);
ret
=
RegDeleteKeyA
(
key
,
""
);
ok
(
ret
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed, got %d
\n
"
,
ret
);
RegCloseKey
(
key
);
ret
=
RegOpenKeyA
(
hkey_main
,
"deleteme"
,
&
key
);
ok
(
ret
==
ERROR_FILE_NOT_FOUND
,
"Key was not deleted, got %d
\n
"
,
ret
);
RegCloseKey
(
key
);
}
static
void
test_reg_save_key
(
void
)
...
...
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