Module: wine Branch: master Commit: 57fa1bee65e14d0d4527edef01b2ce644720de51 URL: http://source.winehq.org/git/wine.git/?a=commit;h=57fa1bee65e14d0d4527edef01... Author: Thomas Faber <thomas.faber(a)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(a)reactos.org> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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 );