advapi32: Support registry objects in SetNamedSecurityInfo.
This commit is contained in:
parent
5368301a48
commit
5915954ef1
|
@ -4049,6 +4049,13 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName,
|
||||||
CloseServiceHandle( handle );
|
CloseServiceHandle( handle );
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case SE_FILE_OBJECT:
|
||||||
if (!(err = get_security_file( pObjectName, access, &handle )))
|
if (!(err = get_security_file( pObjectName, access, &handle )))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue