Commit a9298731 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed requested access rights in RegDeleteKey[AW].

parent 5587d39e
......@@ -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 */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment