From 65c76849a7f3c2a3a51b41aee20b66092da1a429 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 24 Mar 2007 17:32:41 +0100 Subject: [PATCH] ntdll: Fully initialize the security descriptor returned from RtlSelfRelativeToAbsoluteSD. Debugged by Anastasius Focht. --- dlls/ntdll/sec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index 64384cf1b45..b88e198ad0c 100644 --- a/dlls/ntdll/sec.c +++ b/dlls/ntdll/sec.c @@ -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) {