{
PCM_KEY_NODE KeyCell;
HCELL_INDEX RootCellIndex;
- SIZE_T NameSize;
+ ULONG NameSize;
/* Allocate the cell */
- NameSize = strlenW(Name) * sizeof(WCHAR);
+ NameSize = (ULONG)strlenW(Name) * sizeof(WCHAR);
RootCellIndex = HvAllocateCell(Hive,
FIELD_OFFSET(CM_KEY_NODE, Name) + NameSize,
Stable,
KeyCell->MaxClassLen = 0;
KeyCell->MaxValueNameLen = 0;
KeyCell->MaxValueDataLen = 0;
-
+
/* Write the name */
KeyCell->NameLength = (USHORT)NameSize;
memcpy(KeyCell->Name, Name, NameSize);
HCELL_INDEX CMAPI
HvAllocateCell(
PHHIVE RegistryHive,
- SIZE_T Size,
+ ULONG Size,
HSTORAGE_TYPE Storage,
HCELL_INDEX Vicinity)
{
CellRef->StaticCount++;
return TRUE;
}
-
+
/* FIXME: TODO */
DPRINT1("ERROR: Too many references\n");
while (TRUE);
/* Any references? */
if (CellRef->StaticCount > 0)
- {
+ {
/* Sanity check */
ASSERT(CellRef->StaticCount <= STATIC_CELL_PAIR_COUNT);
-
+
/* Loop them */
for (i = 0; i < CellRef->StaticCount;i++)
{
/* Free again */
CellRef->StaticCount = 0;
}
-}
\ No newline at end of file
+}