From 4c85cfac11736e6e7fa80a9372dbbb34707a4340 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 10 Mar 2013 13:43:13 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=58461 --- reactos/dll/win32/lsasrv/database.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/reactos/dll/win32/lsasrv/database.c b/reactos/dll/win32/lsasrv/database.c index c74604d69dc..0b9b17bf0ad 100644 --- a/reactos/dll/win32/lsasrv/database.c +++ b/reactos/dll/win32/lsasrv/database.c @@ -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; }