Commit 5915954e authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

advapi32: Support registry objects in SetNamedSecurityInfo.

parent 5368301a
...@@ -4049,6 +4049,13 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName, ...@@ -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 )))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment