mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +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
|
/* first only probe and copy until the control field of the descriptor
|
||||||
to determine whether it's a self-relative descriptor */
|
to determine whether it's a self-relative descriptor */
|
||||||
DescriptorSize = (ULONG)((ULONG_PTR)&OriginalSecurityDescriptor->Control -
|
DescriptorSize = FIELD_OFFSET(SECURITY_DESCRIPTOR,
|
||||||
(ULONG_PTR)OriginalSecurityDescriptor) +
|
Owner);
|
||||||
sizeof(OriginalSecurityDescriptor->Control);
|
|
||||||
ProbeForRead(OriginalSecurityDescriptor,
|
ProbeForRead(OriginalSecurityDescriptor,
|
||||||
DescriptorSize,
|
DescriptorSize,
|
||||||
sizeof(ULONG));
|
sizeof(ULONG));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue