mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 19:24:20 +00:00
SeSetSecurityDescriptorInfo/Ex check the security object pointer for null. http://msdn2.microsoft.com/en-us/library/ms800810.aspx
svn path=/trunk/; revision=32800
This commit is contained in:
parent
89484a110d
commit
575c79dc43
|
@ -906,9 +906,12 @@ SeSetSecurityDescriptorInfo(IN PVOID Object OPTIONAL,
|
|||
ULONG Control = 0;
|
||||
ULONG_PTR Current;
|
||||
SECURITY_INFORMATION SecurityInformation;
|
||||
|
||||
|
||||
|
||||
ObjectSd = *ObjectsSecurityDescriptor;
|
||||
|
||||
if (!ObjectSd)
|
||||
return STATUS_NO_SECURITY_ON_OBJECT; // The object does not have a security descriptor.
|
||||
|
||||
SecurityInformation = *_SecurityInformation;
|
||||
|
||||
/* Get owner and owner size */
|
||||
|
@ -1083,6 +1086,11 @@ SeSetSecurityDescriptorInfoEx(
|
|||
IN PGENERIC_MAPPING GenericMapping
|
||||
)
|
||||
{
|
||||
PISECURITY_DESCRIPTOR ObjectSd = *ObjectsSecurityDescriptor;
|
||||
|
||||
if (!ObjectSd)
|
||||
return STATUS_NO_SECURITY_ON_OBJECT; // The object does not have a security descriptor.
|
||||
|
||||
UNIMPLEMENTED;
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue