Module: wine Branch: master Commit: 65c76849a7f3c2a3a51b41aee20b66092da1a429 URL: http://source.winehq.org/git/wine.git/?a=commit;h=65c76849a7f3c2a3a51b41aee2...
Author: Hans Leidekker hans@it.vu.nl Date: Sat Mar 24 17:32:41 2007 +0100
ntdll: Fully initialize the security descriptor returned from RtlSelfRelativeToAbsoluteSD.
Debugged by Anastasius Focht.
---
dlls/ntdll/sec.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index 64384cf..b88e198 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) {