Author: fireball
Date: Tue Dec 25 16:15:52 2007
New Revision: 31432
URL:
http://svn.reactos.org/svn/reactos?rev=31432&view=rev
Log:
- Initialize FlusherLock as a pushlock, not as an Ex-resource (it's used as a pushlock
in the code now).
Modified:
trunk/reactos/ntoskrnl/config/cminit.c
Modified: trunk/reactos/ntoskrnl/config/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cminit.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cminit.c (original)
+++ trunk/reactos/ntoskrnl/config/cminit.c Tue Dec 25 16:15:52 2007
@@ -119,10 +119,12 @@
if (!Hive->ViewLock) return STATUS_INSUFFICIENT_RESOURCES;
/* Allocate the flush lock */
+#if 0
Hive->FlusherLock = ExAllocatePoolWithTag(NonPagedPool,
sizeof(ERESOURCE),
TAG_CM);
if (!Hive->FlusherLock) return STATUS_INSUFFICIENT_RESOURCES;
+#endif
/* Setup the handles */
Hive->FileHandles[HFILE_TYPE_PRIMARY] = Primary;
@@ -134,7 +136,7 @@
Hive->ViewLockOwner = NULL;
/* Initialize the flush lock */
- ExInitializeResourceLite(Hive->FlusherLock);
+ ExInitializePushLock((PULONG_PTR)&Hive->FlusherLock);
/* Setup hive locks */
ExInitializePushLock((PULONG_PTR)&Hive->HiveLock);
@@ -187,7 +189,9 @@
{
/* Clear allocations and fail */
ExFreePool(Hive->ViewLock);
+#if 0
ExFreePool(Hive->FlusherLock);
+#endif
ExFreePool(Hive);
return Status;
}
@@ -203,7 +207,9 @@
{
/* Free all alocations */
ExFreePool(Hive->ViewLock);
+#if 0
ExFreePool(Hive->FlusherLock);
+#endif
ExFreePool(Hive);
return STATUS_REGISTRY_CORRUPT;
}