Thomas Faber : msi: Do not open registry keys with no access rights.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 1 10:44:06 CST 2016


Module: wine
Branch: master
Commit: 57fa1bee65e14d0d4527edef01b2ce644720de51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=57fa1bee65e14d0d4527edef01b2ce644720de51

Author: Thomas Faber <thomas.faber at reactos.org>
Date:   Fri Nov 27 12:25:27 2015 +0100

msi: Do not open registry keys with no access rights.

Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/action.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 8c1bff3..370007c 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -3003,7 +3003,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 );




More information about the wine-cvs mailing list