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
cdc842f6
Commit
cdc842f6
authored
Mar 21, 2024
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Merge RegLoadKey and RegUnLoadKey tests.
parent
d7aaf514
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
25 deletions
+4
-25
registry.c
dlls/advapi32/tests/registry.c
+4
-25
No files found.
dlls/advapi32/tests/registry.c
View file @
cdc842f6
...
...
@@ -1561,29 +1561,6 @@ static void test_reg_save_key(void)
static
void
test_reg_load_key
(
void
)
{
DWORD
ret
;
HKEY
hkHandle
;
if
(
!
set_privileges
(
SE_RESTORE_NAME
,
TRUE
)
||
!
set_privileges
(
SE_BACKUP_NAME
,
FALSE
))
{
win_skip
(
"Failed to set SE_RESTORE_NAME privileges, skipping tests
\n
"
);
return
;
}
ret
=
RegLoadKeyA
(
HKEY_LOCAL_MACHINE
,
"Test"
,
"saved_key"
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
set_privileges
(
SE_RESTORE_NAME
,
FALSE
);
ret
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Test"
,
&
hkHandle
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
RegCloseKey
(
hkHandle
);
}
static
void
test_reg_unload_key
(
void
)
{
UNICODE_STRING
key_name
;
OBJECT_ATTRIBUTES
attr
;
NTSTATUS
status
;
...
...
@@ -1597,7 +1574,10 @@ static void test_reg_unload_key(void)
return
;
}
ret
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Test"
,
0
,
KEY_READ
,
&
key
);
ret
=
RegLoadKeyA
(
HKEY_LOCAL_MACHINE
,
"Test"
,
"saved_key"
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
ret
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Test"
,
&
key
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
/* try to unload though the key handle is live */
...
...
@@ -4988,7 +4968,6 @@ START_TEST(registry)
test_classesroot_mask
();
test_reg_save_key
();
test_reg_load_key
();
test_reg_unload_key
();
test_reg_load_app_key
();
test_reg_copy_tree
();
test_reg_delete_tree
();
...
...
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