mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 21:34:17 +00:00
this hack wasn't supposed to be committed
svn path=/trunk/; revision=36375
This commit is contained in:
parent
8ff60114b6
commit
3415a605e5
|
@ -2124,29 +2124,6 @@ QueryServiceObjectSecurity(SC_HANDLE hService,
|
|||
DWORD cbBufSize,
|
||||
LPDWORD pcbBytesNeeded)
|
||||
{
|
||||
|
||||
SECURITY_DESCRIPTOR descriptor;
|
||||
DWORD size;
|
||||
BOOL succ;
|
||||
ACL acl;
|
||||
|
||||
FIXME("%p %d %p %u %p - semi-stub\n", hService, dwSecurityInformation,
|
||||
lpSecurityDescriptor, cbBufSize, pcbBytesNeeded);
|
||||
|
||||
if (dwSecurityInformation != DACL_SECURITY_INFORMATION)
|
||||
FIXME("information %d not supported\n", dwSecurityInformation);
|
||||
|
||||
InitializeSecurityDescriptor(&descriptor, SECURITY_DESCRIPTOR_REVISION);
|
||||
|
||||
InitializeAcl(&acl, sizeof(ACL), ACL_REVISION);
|
||||
SetSecurityDescriptorDacl(&descriptor, TRUE, &acl, TRUE);
|
||||
|
||||
size = cbBufSize;
|
||||
succ = RtlMakeSelfRelativeSD(&descriptor, lpSecurityDescriptor, &size);
|
||||
*pcbBytesNeeded = size;
|
||||
return succ;
|
||||
|
||||
#if 0
|
||||
DWORD dwError;
|
||||
|
||||
TRACE("QueryServiceObjectSecurity(%p, %lu, %p)\n",
|
||||
|
@ -2178,7 +2155,6 @@ QueryServiceObjectSecurity(SC_HANDLE hService,
|
|||
}
|
||||
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
@ -2191,9 +2167,6 @@ SetServiceObjectSecurity(SC_HANDLE hService,
|
|||
SECURITY_INFORMATION dwSecurityInformation,
|
||||
PSECURITY_DESCRIPTOR lpSecurityDescriptor)
|
||||
{
|
||||
FIXME("%p %d %p\n", hService, dwSecurityInformation, lpSecurityDescriptor);
|
||||
return TRUE;
|
||||
#if 0
|
||||
PSECURITY_DESCRIPTOR SelfRelativeSD = NULL;
|
||||
ULONG Length;
|
||||
NTSTATUS Status;
|
||||
|
@ -2253,7 +2226,6 @@ SetServiceObjectSecurity(SC_HANDLE hService,
|
|||
}
|
||||
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue