Andrey Turkin : ntdll: Always set output values in RtlGetDaclSecurityDescriptor.
Alexandre Julliard
julliard at winehq.org
Sun Jan 4 09:09:13 CST 2009
Module: wine
Branch: master
Commit: 79dd662d2d953458acbdf965999f62d731209b9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=79dd662d2d953458acbdf965999f62d731209b9e
Author: Andrey Turkin <andrey.turkin at 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;
}
More information about the wine-cvs
mailing list