- 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:
Thomas Faber 2015-11-27 11:34:12 +00:00
parent ba51763c03
commit 2c5b452770

View file

@ -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 );