Author: tkreuzer
Date: Sun Mar 10 13:43:13 2013
New Revision: 58461
URL: http://svn.reactos.org/svn/reactos?rev=58461&view=rev
Log:
[LSASRV]
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.
Modified:
trunk/reactos/dll/win32/lsasrv/database.c
Modified: trunk/reactos/dll/win32/lsasrv/database.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/database.…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/database.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/database.c [iso-8859-1] Sun Mar 10 13:43:13 2013
@@ -293,8 +293,7 @@
if (!NT_SUCCESS(Status))
goto done;
- Status = LsapCreatePolicySd(&PolicySd,
- &PolicySdSize);
+ Status = LsapCreatePolicySd(&PolicySd, &PolicySdSize);
if (!NT_SUCCESS(Status))
goto done;
@@ -356,7 +355,7 @@
/* Set the audit events attribute */
LsapSetObjectAttribute(PolicyObject,
L"PolAdtEv",
- &AuditEventsInfo,
+ AuditEventsInfo,
AuditEventsSize);
/* Set the DNS Domain Name attribute */
@@ -990,7 +989,8 @@
NULL);
if (!NT_SUCCESS(Status))
{
-
+ ERR("NtCreateKey failed for '%S' with status 0x%lx\n",
+ AttributeName, Status);
return Status;
}
@@ -1000,6 +1000,12 @@
AttributeSize);
NtClose(AttributeKey);
+
+ if (!NT_SUCCESS(Status))
+ {
+ ERR("RtlpNtSetValueKey failed for '%S' with status 0x%lx\n",
+ AttributeName, Status);
+ }
return Status;
}