Fixed a test after a memory allocation in CmiInitPermanentRegistryHive.

svn path=/trunk/; revision=3005
This commit is contained in:
Hartmut Birr 2002-06-05 19:34:08 +00:00
parent d55c657a07
commit 926cc1342f

View file

@ -634,7 +634,7 @@ CmiInitPermanentRegistryHive(PREGISTRY_HIVE RegistryHive,
RegistryHive->BlockList[0] = ExAllocatePool(PagedPool,
RegistryHive->FileSize - 4096);
if (RegistryHive->BlockList == NULL)
if (RegistryHive->BlockList[0] == NULL)
{
ExFreePool(RegistryHive->BlockList);
ObDereferenceObject(RegistryHive->FileObject);