Author: ekohl
Date: Mon Nov 26 21:55:09 2012
New Revision: 57771
URL:
http://svn.reactos.org/svn/reactos?rev=57771&view=rev
Log:
[LSASRV]
Do not store a key name in an LSA object. Fixes CORE-6792.
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] Mon Nov 26 21:55:09 2012
@@ -796,7 +796,8 @@
NewObject = RtlAllocateHeap(RtlGetProcessHeap(),
0,
- sizeof(LSA_DB_OBJECT) + wcslen(ObjectName) +
sizeof(WCHAR));
+// sizeof(LSA_DB_OBJECT) + wcslen(ObjectName) +
sizeof(WCHAR));
+ sizeof(LSA_DB_OBJECT));
if (NewObject == NULL)
{
NtClose(ObjectKeyHandle);
@@ -809,7 +810,7 @@
NewObject->Access = DesiredAccess;
NewObject->KeyHandle = ObjectKeyHandle;
NewObject->ParentObject = ParentObject;
- wcscpy(NewObject->Name, ObjectName);
+// wcscpy(NewObject->Name, ObjectName);
if (ParentObject != NULL)
ParentObject->RefCount++;
@@ -900,9 +901,10 @@
LsapDeleteDbObject(IN PLSA_DB_OBJECT DbObject)
{
PLSA_DB_OBJECT ParentObject = NULL;
+#if 0
WCHAR KeyName[64];
ULONG EnumIndex;
-
+#endif
NTSTATUS Status = STATUS_SUCCESS;
DbObject->RefCount--;
@@ -912,6 +914,7 @@
if (DbObject->KeyHandle != NULL)
{
+#if 0
EnumIndex = 0;
while (TRUE)
@@ -933,16 +936,17 @@
// EnumIndex++;
}
-
+#endif
NtClose(DbObject->KeyHandle);
}
if (DbObject->ParentObject != NULL)
{
ParentObject = DbObject->ParentObject;
-
+#if 0
LsapRegDeleteKey(ParentObject->KeyHandle,
DbObject->Name);
+#endif
}
RtlFreeHeap(RtlGetProcessHeap(), 0, DbObject);