Author: weiden
Date: Fri Oct 20 18:26:41 2006
New Revision: 24583
URL:
http://svn.reactos.org/svn/reactos?rev=24583&view=rev
Log:
Minor simplification
Modified:
trunk/reactos/ntoskrnl/se/sd.c
Modified: trunk/reactos/ntoskrnl/se/sd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/sd.c?rev=24583…
==============================================================================
--- trunk/reactos/ntoskrnl/se/sd.c (original)
+++ trunk/reactos/ntoskrnl/se/sd.c Fri Oct 20 18:26:41 2006
@@ -411,9 +411,8 @@
{
/* 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));