[DISK]
authorPierre Schweitzer <pierre@reactos.org>
Mon, 22 Feb 2016 20:47:55 +0000 (20:47 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 22 Feb 2016 20:47:55 +0000 (20:47 +0000)
- 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

index 8d20fad..483fbeb 100644 (file)
@@ -2248,6 +2248,11 @@ Return Value:
 
             PPARTITION_INFORMATION outputBuffer;
 
 
             PPARTITION_INFORMATION outputBuffer;
 
+            if (diskData->PartitionNumber == 0) {
+                DPRINT1("HACK: Handling partition 0 request!\n");
+                //ASSERT(FALSE);
+            }
+
             //
             // Update the geometry in case it has changed.
             //
             //
             // Update the geometry in case it has changed.
             //
@@ -2269,12 +2274,6 @@ Return Value:
             //
 
             diskData->DriveNotReady = FALSE;
             //
 
             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;
 
             outputBuffer =
                     (PPARTITION_INFORMATION)Irp->AssociatedIrp.SystemBuffer;