Author: tfaber
Date: Tue Aug 26 10:53:21 2014
New Revision: 63950
URL:
http://svn.reactos.org/svn/reactos?rev=63950&view=rev
Log:
[CMLIB]
- Print a debug message if bin validation fails in HvpInitializeMemoryHive.
Modified:
trunk/reactos/lib/cmlib/hiveinit.c
Modified: trunk/reactos/lib/cmlib/hiveinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hiveinit.c?rev=6…
==============================================================================
--- trunk/reactos/lib/cmlib/hiveinit.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/hiveinit.c [iso-8859-1] Tue Aug 26 10:53:21 2014
@@ -210,6 +210,8 @@
if (Bin->Signature != HV_BIN_SIGNATURE ||
(Bin->Size % HV_BLOCK_SIZE) != 0)
{
+ DPRINT1("Invalid bin at BlockIndex %Iu, Signature 0x%lx, Size
0x%lx\n",
+ BlockIndex, Bin->Signature, Bin->Size);
Hive->Free(Hive->BaseBlock, 0);
Hive->Free(Hive->Storage[Stable].BlockList, 0);
return STATUS_REGISTRY_CORRUPT;
@@ -506,7 +508,7 @@
}
/* Check for previous damage */
- if (Status == STATUS_REGISTRY_RECOVERED) ASSERT(FALSE);
+ ASSERT(Status != STATUS_REGISTRY_RECOVERED);
break;
}