From 00c32239b42b113f81a6d22384f77fe42fe0e724 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Sun, 12 Jun 2005 11:07:37 +0000 Subject: [PATCH] Remove stub status. Check for correct revision value. --- dlls/ntdll/sec.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index faa709ab9b4..bb275cd8c03 100644 --- a/dlls/ntdll/sec.c +++ b/dlls/ntdll/sec.c @@ -835,18 +835,19 @@ NTSTATUS WINAPI RtlSelfRelativeToAbsoluteSD( * RtlGetControlSecurityDescriptor (NTDLL.@) */ NTSTATUS WINAPI RtlGetControlSecurityDescriptor( - PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSECURITY_DESCRIPTOR pSecurityDescriptor, PSECURITY_DESCRIPTOR_CONTROL pControl, LPDWORD lpdwRevision) { - SECURITY_DESCRIPTOR* lpsd=pSecurityDescriptor; + SECURITY_DESCRIPTOR *lpsd = pSecurityDescriptor; - TRACE("(%p,%p,%p),stub!\n",pSecurityDescriptor,pControl,lpdwRevision); - - if ( !lpsd || !pControl || !lpdwRevision ) - return STATUS_INVALID_PARAMETER; + TRACE("(%p,%p,%p)\n",pSecurityDescriptor,pControl,lpdwRevision); *lpdwRevision = lpsd->Revision; + + if (*lpdwRevision != SECURITY_DESCRIPTOR_REVISION) + return STATUS_UNKNOWN_REVISION; + *pControl = lpsd->Control; return STATUS_SUCCESS;