From a9298731faf8f520348d566d1e28163f45edeb1c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 12 Sep 2002 20:47:14 +0000 Subject: [PATCH] Fixed requested access rights in RegDeleteKey[AW]. --- dlls/advapi32/registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c index 725d02bbb3..bc8be94b20 100644 --- a/dlls/advapi32/registry.c +++ b/dlls/advapi32/registry.c @@ -698,7 +698,7 @@ DWORD WINAPI RegDeleteKeyW( HKEY hkey, LPCWSTR name ) { ret = RtlNtStatusToDosError( NtDeleteKey( hkey ) ); } - else if (!(ret = RegOpenKeyExW( hkey, name, 0, 0, &tmp ))) + else if (!(ret = RegOpenKeyExW( hkey, name, 0, KEY_ENUMERATE_SUB_KEYS, &tmp ))) { if (!is_version_nt()) /* win95 does recursive key deletes */ { @@ -730,7 +730,7 @@ DWORD WINAPI RegDeleteKeyA( HKEY hkey, LPCSTR name ) { ret = RtlNtStatusToDosError( NtDeleteKey( hkey ) ); } - else if (!(ret = RegOpenKeyExA( hkey, name, 0, KEY_ALL_ACCESS, &tmp ))) + else if (!(ret = RegOpenKeyExA( hkey, name, 0, KEY_ENUMERATE_SUB_KEYS, &tmp ))) { if (!is_version_nt()) /* win95 does recursive key deletes */ {