mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[MSI]
- Do not open registry keys with no access rights. Will be sent to Wine after 1.8 code freeze. CORE-10587 svn path=/trunk/; revision=70150
This commit is contained in:
parent
ba51763c03
commit
2c5b452770
1 changed files with 1 additions and 1 deletions
|
@ -2987,7 +2987,7 @@ static void delete_key( const MSICOMPONENT *comp, HKEY root, const WCHAR *path )
|
|||
{
|
||||
*p = 0;
|
||||
if (!p[1]) continue; /* trailing backslash */
|
||||
hkey = open_key( comp, root, subkey, FALSE, access );
|
||||
hkey = open_key( comp, root, subkey, FALSE, access | READ_CONTROL );
|
||||
if (!hkey) break;
|
||||
res = RegDeleteKeyExW( hkey, p + 1, access, 0 );
|
||||
RegCloseKey( hkey );
|
||||
|
|
Loading…
Reference in a new issue