diff --git a/reactos/ntoskrnl/se/sd.c b/reactos/ntoskrnl/se/sd.c index b75c18afe54..c82cc51ae9d 100644 --- a/reactos/ntoskrnl/se/sd.c +++ b/reactos/ntoskrnl/se/sd.c @@ -882,12 +882,13 @@ SeSetSecurityDescriptorInfo(IN PVOID Object OPTIONAL, SECURITY_INFORMATION SecurityInformation; ObjectSd = *ObjectsSecurityDescriptor; - ASSERT(ObjectSd->Control & SE_SELF_RELATIVE); /* The object does not have a security descriptor. */ if (!ObjectSd) return STATUS_NO_SECURITY_ON_OBJECT; + ASSERT(ObjectSd->Control & SE_SELF_RELATIVE); + SecurityInformation = *_SecurityInformation; /* Get owner and owner size */