mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 03:24:33 +00:00
fix some advapi32 lsa winetests
svn path=/trunk/; revision=35958
This commit is contained in:
parent
e941fb914b
commit
a22ce9b036
1 changed files with 79 additions and 80 deletions
|
@ -433,20 +433,18 @@ LsaQueryForestTrustInformation(
|
|||
*/
|
||||
NTSTATUS STDCALL
|
||||
LsaQueryInformationPolicy(LSA_HANDLE PolicyHandle,
|
||||
POLICY_INFORMATION_CLASS pic,
|
||||
POLICY_INFORMATION_CLASS InformationClass,
|
||||
PVOID *Buffer)
|
||||
{
|
||||
FIXME("(%p,0x%08x,%p) stub\n",
|
||||
PolicyHandle, pic, Buffer);
|
||||
TRACE("(%p,0x%08x,%p)\n", PolicyHandle, InformationClass, Buffer);
|
||||
|
||||
if (!Buffer)
|
||||
return FALSE;
|
||||
|
||||
switch (pic)
|
||||
if(!Buffer) return STATUS_INVALID_PARAMETER;
|
||||
switch (InformationClass)
|
||||
{
|
||||
case PolicyAuditEventsInformation: /* 2 */
|
||||
{
|
||||
PPOLICY_AUDIT_EVENTS_INFO p = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(POLICY_AUDIT_EVENTS_INFO));
|
||||
PPOLICY_AUDIT_EVENTS_INFO p = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
sizeof(POLICY_AUDIT_EVENTS_INFO));
|
||||
p->AuditingMode = FALSE; /* no auditing */
|
||||
*Buffer = p;
|
||||
}
|
||||
|
@ -455,7 +453,8 @@ LsaQueryInformationPolicy(LSA_HANDLE PolicyHandle,
|
|||
case PolicyAccountDomainInformation: /* 5 */
|
||||
{
|
||||
struct di
|
||||
{ POLICY_PRIMARY_DOMAIN_INFO ppdi;
|
||||
{
|
||||
POLICY_PRIMARY_DOMAIN_INFO ppdi;
|
||||
SID sid;
|
||||
};
|
||||
SID_IDENTIFIER_AUTHORITY localSidAuthority = {SECURITY_NT_AUTHORITY};
|
||||
|
@ -515,10 +514,10 @@ LsaQueryInformationPolicy(LSA_HANDLE PolicyHandle,
|
|||
case PolicyEfsInformation:
|
||||
{
|
||||
FIXME("category not implemented\n");
|
||||
return FALSE;
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue