From 5915954ef1770cc0b377312bbea961c0bb629762 Mon Sep 17 00:00:00 2001 From: Erich Hoover Date: Sat, 2 Feb 2013 08:53:17 -0700 Subject: [PATCH] advapi32: Support registry objects in SetNamedSecurityInfo. --- dlls/advapi32/security.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 825d02e824..0d5aba7984 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -4049,6 +4049,13 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName, CloseServiceHandle( handle ); } break; + case SE_REGISTRY_KEY: + if (!(err = get_security_regkey( pObjectName, access, &handle ))) + { + err = SetSecurityInfo( handle, ObjectType, SecurityInfo, psidOwner, psidGroup, pDacl, pSacl ); + RegCloseKey( handle ); + } + break; case SE_FILE_OBJECT: if (!(err = get_security_file( pObjectName, access, &handle ))) { -- 2.32.0.93.g670b81a890