From 24d367623510e6a119da9b1a847a1713730e2aef Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 22 Feb 2016 20:47:55 +0000 Subject: [PATCH] [DISK] - Remove one hack that seems not to be required anylonger. - Add a comment to highlight the usage of the infamous partition 0 hack (who's the IopParseDevice() hack friend!) svn path=/trunk/; revision=70771 --- reactos/drivers/storage/class/disk/disk.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/reactos/drivers/storage/class/disk/disk.c b/reactos/drivers/storage/class/disk/disk.c index 8d20fad2964..483fbeb22f5 100644 --- a/reactos/drivers/storage/class/disk/disk.c +++ b/reactos/drivers/storage/class/disk/disk.c @@ -2248,6 +2248,11 @@ Return Value: PPARTITION_INFORMATION outputBuffer; + if (diskData->PartitionNumber == 0) { + DPRINT1("HACK: Handling partition 0 request!\n"); + //ASSERT(FALSE); + } + // // Update the geometry in case it has changed. // @@ -2269,12 +2274,6 @@ Return Value: // diskData->DriveNotReady = FALSE; -// HACK: ReactOS partition numbers must be wrong (>0 part) - if (diskData->PartitionType == 0 && (diskData->PartitionNumber > 0)) { - - status = STATUS_INVALID_DEVICE_REQUEST; - break; - } outputBuffer = (PPARTITION_INFORMATION)Irp->AssociatedIrp.SystemBuffer; -- 2.17.1