Author: dgorbachev
Date: Sat Apr 14 02:04:39 2007
New Revision: 26333
URL:
http://svn.reactos.org/svn/reactos?rev=26333&view=rev
Log:
Allow installation to / booting from a disk with several partitions (hack).
Modified:
trunk/reactos/drivers/storage/class/disk/disk.c
Modified: trunk/reactos/drivers/storage/class/disk/disk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/disk…
==============================================================================
--- trunk/reactos/drivers/storage/class/disk/disk.c (original)
+++ trunk/reactos/drivers/storage/class/disk/disk.c Sat Apr 14 02:04:39 2007
@@ -2129,7 +2129,8 @@
outputBuffer->PartitionType = diskData->PartitionType;
outputBuffer->StartingOffset = deviceExtension->StartingOffset;
- outputBuffer->PartitionLength = deviceExtension->PartitionLength;
+ outputBuffer->PartitionLength.QuadPart = (diskData->PartitionNumber) ?
+ deviceExtension->PartitionLength.QuadPart : 2305843009213693951LL; //
HACK
outputBuffer->HiddenSectors = diskData->HiddenSectors;
outputBuffer->PartitionNumber = diskData->PartitionNumber;
outputBuffer->BootIndicator = diskData->BootIndicator;