[CMLIB]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 22 May 2017 13:48:11 +0000 (13:48 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 22 May 2017 13:48:11 +0000 (13:48 +0000)
- Fix an assert that only works by chance

svn path=/trunk/; revision=74628

reactos/sdk/lib/cmlib/hivecell.c

index 3a401d9..0a005de 100644 (file)
@@ -33,7 +33,7 @@ HvpGetCellHeader(
     }
     else
     {
-        ASSERT((CellIndex & HCELL_TYPE_MASK) == Stable);
+        ASSERT(HvGetCellType(CellIndex) == Stable);
         return (PVOID)((ULONG_PTR)RegistryHive->BaseBlock + HBLOCK_SIZE +
                        CellIndex);
     }