- 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
This commit is contained in:
Pierre Schweitzer 2016-02-22 20:47:55 +00:00
parent 26495e949a
commit 24d3676235

View file

@ -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;