mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 18:04:41 +00:00
- FileOffset is 32bit long, not 64bit, so no reason in additional casting.
- Fix a ULONG -> BOOLEAN conversion warning. svn path=/trunk/; revision=36367
This commit is contained in:
parent
463ffc2132
commit
0230d25b11
|
@ -124,6 +124,8 @@ BOOLEAN CMAPI
|
|||
HvIsCellDirty(IN PHHIVE Hive,
|
||||
IN HCELL_INDEX Cell)
|
||||
{
|
||||
BOOLEAN IsDirty = FALSE;
|
||||
|
||||
/* Sanity checks */
|
||||
ASSERT(Hive->ReadOnly == FALSE);
|
||||
|
||||
|
@ -132,7 +134,11 @@ HvIsCellDirty(IN PHHIVE Hive,
|
|||
return TRUE;
|
||||
|
||||
/* Check if the dirty bit is set */
|
||||
return RtlCheckBit(&Hive->DirtyVector, Cell / HV_BLOCK_SIZE);
|
||||
if (RtlCheckBit(&Hive->DirtyVector, Cell / HV_BLOCK_SIZE))
|
||||
IsDirty = TRUE;
|
||||
|
||||
/* Return result as boolean*/
|
||||
return IsDirty;
|
||||
}
|
||||
|
||||
static ULONG __inline CMAPI
|
||||
|
|
|
@ -189,7 +189,7 @@ HvpWriteHive(
|
|||
}
|
||||
|
||||
BlockPtr = (PVOID)RegistryHive->Storage[Stable].BlockList[BlockIndex].BlockAddress;
|
||||
FileOffset = (ULONGLONG)(BlockIndex + 1) * (ULONGLONG)HV_BLOCK_SIZE;
|
||||
FileOffset = (BlockIndex + 1) * HV_BLOCK_SIZE;
|
||||
|
||||
/* Write hive block */
|
||||
Success = RegistryHive->FileWrite(RegistryHive, HFILE_TYPE_PRIMARY,
|
||||
|
|
Loading…
Reference in a new issue