Andrey Turkin : ntdll: Always set output values in RtlGetDaclSecurityDescriptor.
Module: wine Branch: master Commit: 79dd662d2d953458acbdf965999f62d731209b9e URL: http://source.winehq.org/git/wine.git/?a=commit;h=79dd662d2d953458acbdf96599... Author: Andrey Turkin <andrey.turkin(a)gmail.com> Date: Sat Jan 3 18:35:00 2009 +0300 ntdll: Always set output values in RtlGetDaclSecurityDescriptor. --- dlls/ntdll/sec.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index a3a7148..a764e21 100644 --- a/dlls/ntdll/sec.c +++ b/dlls/ntdll/sec.c @@ -618,7 +618,12 @@ NTSTATUS WINAPI RtlGetDaclSecurityDescriptor( *pDacl = lpsd->Dacl; *lpbDaclDefaulted = (( SE_DACL_DEFAULTED & lpsd->Control ) ? 1 : 0); - } + } + else + { + *pDacl = NULL; + *lpbDaclDefaulted = 0; + } return STATUS_SUCCESS; }
participants (1)
-
Alexandre Julliard