From 2c5b45277044cc9c777c0f36c77d70d1e456af63 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 27 Nov 2015 11:34:12 +0000 Subject: [PATCH] [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 --- reactos/dll/win32/msi/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/msi/action.c b/reactos/dll/win32/msi/action.c index ea66a4db8cf..cedfb7c30f0 100644 --- a/reactos/dll/win32/msi/action.c +++ b/reactos/dll/win32/msi/action.c @@ -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 );