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:
James Tabor 2008-04-01 00:31:56 +00:00
parent 89484a110d
commit 575c79dc43

View file

@ -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;
}