// If we already have a cache for this drive then
// by all means lets keep it, unless it is a removable
// drive, in which case we'll invalidate the cache
- if ((CacheManagerInitialized == TRUE) &&
+ if ((CacheManagerInitialized) &&
(DriveNumber == CacheManagerDrive.DriveNumber) &&
(DriveNumber >= 0x80) &&
- (CacheManagerDataInvalid != TRUE))
+ (!CacheManagerDataInvalid))
{
return TRUE;
}
}
//
- // Caculate which blocks we must cache
+ // Calculate which blocks we must cache
//
StartBlock = (ULONG)(StartSector / CacheManagerDrive.BlockSize);
SectorOffsetInStartBlock = (ULONG)(StartSector % CacheManagerDrive.BlockSize);
}
//
- // Caculate which blocks we must cache
+ // Calculate which blocks we must cache
//
StartBlock = StartSector / CacheManagerDrive.BlockSize;
EndBlock = (StartSector + SectorCount) / CacheManagerDrive.BlockSize;