Alexandre Julliard : server: Fix access check for NtQueryKey.
Alexandre Julliard
julliard at winehq.org
Tue Jul 5 15:56:14 CDT 2022
Module: wine
Branch: master
Commit: ec8edb66df7fdcfe15c5b8499b95026b9c769189
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ec8edb66df7fdcfe15c5b8499b95026b9c769189
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jul 5 14:08:43 2022 +0200
server: Fix access check for NtQueryKey.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/reg.c | 1 -
server/registry.c | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index e791271ed17..242a5b5e898 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -2153,7 +2153,6 @@ static void test_NtRenameKey(void)
info = (KEY_NAME_INFORMATION *)buffer;
status = pNtQueryKey(subkey, KeyNameInformation, info, sizeof(buffer), &size);
- todo_wine
ok(!status, "Unexpected status %#lx.\n", status);
if (status == STATUS_SUCCESS)
{
diff --git a/server/registry.c b/server/registry.c
index 6fe44b4351d..70a304a4c86 100644
--- a/server/registry.c
+++ b/server/registry.c
@@ -2272,8 +2272,7 @@ DECL_HANDLER(enum_key)
{
struct key *key;
- if ((key = get_hkey_obj( req->hkey,
- req->index == -1 ? KEY_QUERY_VALUE : KEY_ENUMERATE_SUB_KEYS )))
+ if ((key = get_hkey_obj( req->hkey, req->index == -1 ? 0 : KEY_ENUMERATE_SUB_KEYS )))
{
enum_key( key, req->index, req->info_class, reply );
release_object( key );
More information about the wine-cvs
mailing list