mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Fixed minor bug.
svn path=/trunk/; revision=2743
This commit is contained in:
parent
5edcdad825
commit
4b81987f15
1 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -514,7 +514,7 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Clear the verify flag for non-removable media drives. */
|
||||
/* Clear the verify flag for removable media drives. */
|
||||
DiskDeviceObject->Flags &= ~DO_VERIFY_VOLUME;
|
||||
}
|
||||
|
||||
|
@ -573,7 +573,7 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
|
|||
PartitionEntry->StartingOffset.QuadPart / 512 /*DrvParms.BytesPerSector*/,
|
||||
PartitionEntry->PartitionLength.QuadPart / 512 /* DrvParms.BytesPerSector*/);
|
||||
|
||||
/* Create partition device (Partition 0) */
|
||||
/* Create partition device object */
|
||||
sprintf(NameBuffer2,
|
||||
"\\Device\\Harddisk%lu\\Partition%lu",
|
||||
DiskNumber,
|
||||
|
@ -610,6 +610,7 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
|
|||
PartitionDeviceExtension->PathId = InquiryData->PathId;
|
||||
PartitionDeviceExtension->TargetId = InquiryData->TargetId;
|
||||
PartitionDeviceExtension->Lun = InquiryData->Lun;
|
||||
PartitionDeviceExtension->SectorShift = DiskDeviceExtension->SectorShift;
|
||||
|
||||
DiskData = (PDISK_DATA)(PartitionDeviceExtension + 1);
|
||||
DiskData->PartitionType = PartitionEntry->PartitionType;
|
||||
|
|
Loading…
Reference in a new issue