Author: pschweitzer
Date: Mon Feb 22 20:47:55 2016
New Revision: 70771
URL:
http://svn.reactos.org/svn/reactos?rev=70771&view=rev
Log:
[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!)
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 [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/disk/disk.c [iso-8859-1] Mon Feb 22 20:47:55 2016
@@ -2248,6 +2248,11 @@
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 @@
//
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;