mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Fixed requested access rights in RegDeleteKey[AW].
This commit is contained in:
parent
5587d39e9c
commit
a9298731fa
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue