mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Minor simplification
svn path=/trunk/; revision=24583
This commit is contained in:
parent
b330be87df
commit
66e157c5eb
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue