status = ClassReadDriveCapacity(Fdo);
//
- // If the read capcity failed then just return, unless this is a
+ // If the read capacity failed then just return, unless this is a
// removable disk where a device object partition needs to be created.
//
fdoExtension->DMByteSkew = fdoExtension->DMSkew * bytesPerSector;
//
- // Save away the infomation that we need, since this deviceExtension will soon be
+ // Save away the information that we need, since this deviceExtension will soon be
// blown away.
//
DiskCreateSymbolicLinks(Fdo);
//
- // Determine the type of disk and enable failure preiction in the hardware
+ // Determine the type of disk and enable failure prediction in the hardware
// and enable failure prediction polling.
//
if((Pdo->Characteristics & FILE_REMOVABLE_MEDIA) == 0) {
if (diskData->PartitionStyle == PARTITION_STYLE_MBR) {
- sprintf(string, "S%08lx_O%I64lx_L%I64lx",
+ sprintf(string, "S%08lx_O%I64x_L%I64x",
diskData->Mbr.Signature,
- commonExtension->StartingOffset,
- commonExtension->PartitionLength);
+ commonExtension->StartingOffset.QuadPart,
+ commonExtension->PartitionLength.QuadPart);
} else {
sprintf(string,
- "S%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02xS_O%I64lx_L%I64lx",
+ "S%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02xS_O%I64x_L%I64x",
diskData->Efi.DiskId.Data1,
diskData->Efi.DiskId.Data2,
diskData->Efi.DiskId.Data3,
diskData->Efi.DiskId.Data4[5],
diskData->Efi.DiskId.Data4[6],
diskData->Efi.DiskId.Data4[7],
- commonExtension->StartingOffset,
- commonExtension->PartitionLength);
+ commonExtension->StartingOffset.QuadPart,
+ commonExtension->PartitionLength.QuadPart);
}
} else {
sprintf(string, "RM");
if (NT_SUCCESS(status))
{
- if (cacheInfo.WriteCacheEnabled == TRUE)
+ if (cacheInfo.WriteCacheEnabled != FALSE)
{
if (writeCacheOverride == DiskWriteCacheDisable)
{