ntdll: Fully initialize the security descriptor returned from RtlSelfRelativeToAbsoluteSD.

Debugged by Anastasius Focht.
This commit is contained in:
Hans Leidekker 2007-03-24 17:32:41 +01:00 committed by Alexandre Julliard
parent e834f8a2b0
commit 65c76849a7
1 changed files with 5 additions and 1 deletions

View File

@ -955,9 +955,13 @@ NTSTATUS WINAPI RtlSelfRelativeToAbsoluteSD(
if (status != STATUS_SUCCESS)
return status;
/* Copy structures */
/* Copy structures, and clear the ones we don't set */
pAbs->Revision = pRel->Revision;
pAbs->Control = pRel->Control & ~SE_SELF_RELATIVE;
pAbs->Sacl = NULL;
pAbs->Dacl = NULL;
pAbs->Owner = NULL;
pAbs->Group = NULL;
if (pRel->Control & SE_SACL_PRESENT)
{