mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 00:36:43 +00:00
Fixed requested access rights in RegDeleteKey[AW].
This commit is contained in:
parent
5587d39e9c
commit
a9298731fa
@ -698,7 +698,7 @@ DWORD WINAPI RegDeleteKeyW( HKEY hkey, LPCWSTR name )
|
|||||||
{
|
{
|
||||||
ret = RtlNtStatusToDosError( NtDeleteKey( hkey ) );
|
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 */
|
if (!is_version_nt()) /* win95 does recursive key deletes */
|
||||||
{
|
{
|
||||||
@ -730,7 +730,7 @@ DWORD WINAPI RegDeleteKeyA( HKEY hkey, LPCSTR name )
|
|||||||
{
|
{
|
||||||
ret = RtlNtStatusToDosError( NtDeleteKey( hkey ) );
|
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 */
|
if (!is_version_nt()) /* win95 does recursive key deletes */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user