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
26e383c8
Commit
26e383c8
authored
Jan 21, 2024
by
Bernhard Übelacker
Committed by
Alexandre Julliard
Jan 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Avoid unloading of HKU .Default registry branch.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55000
parent
d6a6e1f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
registry.c
dlls/advapi32/tests/registry.c
+8
-0
registry.c
server/registry.c
+2
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
26e383c8
...
...
@@ -1598,6 +1598,14 @@ static void test_reg_unload_key(void)
ret
=
RegUnLoadKeyA
(
HKEY_LOCAL_MACHINE
,
"Test"
);
ok
(
ret
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
ret
);
pRtlInitUnicodeString
(
&
key_name
,
L"
\\
REGISTRY
\\
User
\\
.Default"
);
InitializeObjectAttributes
(
&
attr
,
&
key_name
,
OBJ_CASE_INSENSITIVE
,
NULL
,
NULL
);
status
=
pNtUnloadKey
(
&
attr
);
ok
(
status
==
STATUS_ACCESS_DENIED
,
"expected STATUS_ACCESS_DENIED, got %08lx
\n
"
,
status
);
ret
=
RegUnLoadKeyA
(
HKEY_USERS
,
".Default"
);
ok
(
ret
==
ERROR_ACCESS_DENIED
,
"expected ERROR_ACCESS_DENIED, got %ld
\n
"
,
ret
);
set_privileges
(
SE_RESTORE_NAME
,
FALSE
);
DeleteFileA
(
"saved_key"
);
...
...
server/registry.c
View file @
26e383c8
...
...
@@ -2357,6 +2357,8 @@ DECL_HANDLER(unload_registry)
{
if
(
key
->
obj
.
handle_count
)
set_error
(
STATUS_CANNOT_DELETE
);
else
if
(
key
->
obj
.
is_permanent
)
set_error
(
STATUS_ACCESS_DENIED
);
else
delete_key
(
key
,
1
);
/* FIXME */
release_object
(
key
);
...
...
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