open subkey with sufficient rights in RegDeleteTree
authorThomas Bluemel <thomas@reactsoft.com>
Thu, 25 Aug 2005 12:27:25 +0000 (12:27 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Thu, 25 Aug 2005 12:27:25 +0000 (12:27 +0000)
svn path=/trunk/; revision=17536

reactos/lib/advapi32/reg/reg.c

index 2faaf7a..81d43af 100644 (file)
@@ -938,7 +938,7 @@ RegDeleteTreeW(IN HKEY hKey,
                                    NULL);
 
         Status = NtOpenKey(&SubKeyHandle,
                                    NULL);
 
         Status = NtOpenKey(&SubKeyHandle,
-                           KEY_READ,
+                           DELETE | KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE,
                            &ObjectAttributes);
         if (!NT_SUCCESS(Status))
         {
                            &ObjectAttributes);
         if (!NT_SUCCESS(Status))
         {