In LsapCreateDatabaseObjects pass the pointer AuditEventsInfo to LsapSetObjectAttribute instead a pointer to the pointer. Fixes 1 advapi32::lsa winetest when compiled with the new BE.

svn path=/trunk/; revision=58461
This commit is contained in:
Timo Kreuzer 2013-03-10 13:43:13 +00:00
parent 8cb3ec617f
commit 4c85cfac11

View file

@ -293,8 +293,7 @@ LsapCreateDatabaseObjects(VOID)
if (!NT_SUCCESS(Status))
goto done;
Status = LsapCreatePolicySd(&PolicySd,
&PolicySdSize);
Status = LsapCreatePolicySd(&PolicySd, &PolicySdSize);
if (!NT_SUCCESS(Status))
goto done;
@ -356,7 +355,7 @@ LsapCreateDatabaseObjects(VOID)
/* Set the audit events attribute */
LsapSetObjectAttribute(PolicyObject,
L"PolAdtEv",
&AuditEventsInfo,
AuditEventsInfo,
AuditEventsSize);
/* Set the DNS Domain Name attribute */
@ -990,7 +989,8 @@ LsapSetObjectAttribute(PLSA_DB_OBJECT DbObject,
NULL);
if (!NT_SUCCESS(Status))
{
ERR("NtCreateKey failed for '%S' with status 0x%lx\n",
AttributeName, Status);
return Status;
}
@ -1001,6 +1001,12 @@ LsapSetObjectAttribute(PLSA_DB_OBJECT DbObject,
NtClose(AttributeKey);
if (!NT_SUCCESS(Status))
{
ERR("RtlpNtSetValueKey failed for '%S' with status 0x%lx\n",
AttributeName, Status);
}
return Status;
}