Fixed minor bug.

svn path=/trunk/; revision=2743
This commit is contained in:
Eric Kohl 2002-03-20 19:54:06 +00:00
parent 5edcdad825
commit 4b81987f15

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: disk.c,v 1.9 2002/03/13 01:30:34 ekohl Exp $ /* $Id: disk.c,v 1.10 2002/03/20 19:54:06 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -514,7 +514,7 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
} }
else else
{ {
/* Clear the verify flag for non-removable media drives. */ /* Clear the verify flag for removable media drives. */
DiskDeviceObject->Flags &= ~DO_VERIFY_VOLUME; DiskDeviceObject->Flags &= ~DO_VERIFY_VOLUME;
} }
@ -573,7 +573,7 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
PartitionEntry->StartingOffset.QuadPart / 512 /*DrvParms.BytesPerSector*/, PartitionEntry->StartingOffset.QuadPart / 512 /*DrvParms.BytesPerSector*/,
PartitionEntry->PartitionLength.QuadPart / 512 /* DrvParms.BytesPerSector*/); PartitionEntry->PartitionLength.QuadPart / 512 /* DrvParms.BytesPerSector*/);
/* Create partition device (Partition 0) */ /* Create partition device object */
sprintf(NameBuffer2, sprintf(NameBuffer2,
"\\Device\\Harddisk%lu\\Partition%lu", "\\Device\\Harddisk%lu\\Partition%lu",
DiskNumber, DiskNumber,
@ -610,6 +610,7 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
PartitionDeviceExtension->PathId = InquiryData->PathId; PartitionDeviceExtension->PathId = InquiryData->PathId;
PartitionDeviceExtension->TargetId = InquiryData->TargetId; PartitionDeviceExtension->TargetId = InquiryData->TargetId;
PartitionDeviceExtension->Lun = InquiryData->Lun; PartitionDeviceExtension->Lun = InquiryData->Lun;
PartitionDeviceExtension->SectorShift = DiskDeviceExtension->SectorShift;
DiskData = (PDISK_DATA)(PartitionDeviceExtension + 1); DiskData = (PDISK_DATA)(PartitionDeviceExtension + 1);
DiskData->PartitionType = PartitionEntry->PartitionType; DiskData->PartitionType = PartitionEntry->PartitionType;