diff --git a/reactos/lib/advapi32/reg/reg.c b/reactos/lib/advapi32/reg/reg.c index 2faaf7a66fa..81d43af9c52 100644 --- a/reactos/lib/advapi32/reg/reg.c +++ b/reactos/lib/advapi32/reg/reg.c @@ -938,7 +938,7 @@ RegDeleteTreeW(IN HKEY hKey, NULL); Status = NtOpenKey(&SubKeyHandle, - KEY_READ, + DELETE | KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE, &ObjectAttributes); if (!NT_SUCCESS(Status)) {