From 3d24f6cb54bb0844ac7982b0b93390aeb696e30e Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 18 Oct 2015 09:32:52 +0000 Subject: [PATCH] [RTL] - Add missing OBJ_KERNEL_HANDLE in RtlOpenCurrentUser CORE-10207 svn path=/trunk/; revision=69590 --- reactos/lib/rtl/registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/registry.c b/reactos/lib/rtl/registry.c index e80e95f2dd8..02361efc486 100644 --- a/reactos/lib/rtl/registry.c +++ b/reactos/lib/rtl/registry.c @@ -703,7 +703,7 @@ RtlOpenCurrentUser(IN ACCESS_MASK DesiredAccess, /* Initialize the attributes and open it */ InitializeObjectAttributes(&ObjectAttributes, &KeyPath, - OBJ_CASE_INSENSITIVE, + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL); Status = ZwOpenKey(KeyHandle, DesiredAccess, &ObjectAttributes); @@ -717,7 +717,7 @@ RtlOpenCurrentUser(IN ACCESS_MASK DesiredAccess, RtlInitUnicodeString(&KeyPath, RtlpRegPaths[RTL_REGISTRY_USER]); InitializeObjectAttributes(&ObjectAttributes, &KeyPath, - OBJ_CASE_INSENSITIVE, + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL); Status = ZwOpenKey(KeyHandle, DesiredAccess, &ObjectAttributes);