mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed a test after a memory allocation in CmiInitPermanentRegistryHive.
svn path=/trunk/; revision=3005
This commit is contained in:
parent
d55c657a07
commit
926cc1342f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue