Minor simplification

svn path=/trunk/; revision=24583
This commit is contained in:
Thomas Bluemel 2006-10-20 14:26:41 +00:00
parent b330be87df
commit 66e157c5eb

View file

@ -411,9 +411,8 @@ SeCaptureSecurityDescriptor(
{
/* first only probe and copy until the control field of the descriptor
to determine whether it's a self-relative descriptor */
DescriptorSize = (ULONG)((ULONG_PTR)&OriginalSecurityDescriptor->Control -
(ULONG_PTR)OriginalSecurityDescriptor) +
sizeof(OriginalSecurityDescriptor->Control);
DescriptorSize = FIELD_OFFSET(SECURITY_DESCRIPTOR,
Owner);
ProbeForRead(OriginalSecurityDescriptor,
DescriptorSize,
sizeof(ULONG));