open subkey with sufficient rights in RegDeleteTree

svn path=/trunk/; revision=17536
This commit is contained in:
Thomas Bluemel 2005-08-25 12:27:25 +00:00
parent 8d862306ef
commit 3b35dd5038

View file

@ -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))
{