mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
advapi32: Return immediately for unsupported [Get|Set]NamedSecurityInfo objects.
This commit is contained in:
parent
3a4864714d
commit
e3986462df
1 changed files with 15 additions and 0 deletions
|
@ -3928,6 +3928,11 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName,
|
|||
|
||||
TRACE( "%s %d %d %p %p %p %p\n", debugstr_w(pObjectName), ObjectType,
|
||||
SecurityInfo, psidOwner, psidGroup, pDacl, pSacl);
|
||||
if (ObjectType != SE_FILE_OBJECT)
|
||||
{
|
||||
FIXME( "Object type %d is not currently supported.\n", ObjectType );
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
if (!pObjectName) return ERROR_INVALID_PARAMETER;
|
||||
if (!RtlDosPathNameToNtPathName_U( pObjectName, &nameW, NULL, NULL ))
|
||||
|
@ -5465,6 +5470,16 @@ DWORD WINAPI GetNamedSecurityInfoW( LPWSTR name, SE_OBJECT_TYPE type,
|
|||
|
||||
TRACE( "%s %d %d %p %p %p %p %p\n", debugstr_w(name), type, info, owner,
|
||||
group, dacl, sacl, descriptor );
|
||||
if (type != SE_FILE_OBJECT)
|
||||
{
|
||||
FIXME( "Object type %d is not currently supported.\n", type );
|
||||
if (owner) *owner = NULL;
|
||||
if (group) *group = NULL;
|
||||
if (dacl) *dacl = NULL;
|
||||
if (sacl) *sacl = NULL;
|
||||
if (descriptor) *descriptor = NULL;
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
/* A NULL descriptor is allowed if any one of the other pointers is not NULL */
|
||||
if (!name || !(owner||group||dacl||sacl||descriptor) ) return ERROR_INVALID_PARAMETER;
|
||||
|
|
Loading…
Reference in a new issue