advapi32: Support registry objects in SetNamedSecurityInfo.

This commit is contained in:
Erich Hoover 2013-02-02 08:53:17 -07:00 committed by Alexandre Julliard
parent 5368301a48
commit 5915954ef1

View file

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