- Don't re-map the MDL if it's already been built from non-paged pool.

- Hackforce the partition type for disk ramdisks to be FAT32 for now.


svn path=/trunk/; revision=34668
This commit is contained in:
ReactOS Portable Systems Group 2008-07-22 09:32:02 +00:00
parent 4cdbf59086
commit d69ea33500

View file

@ -1109,7 +1109,7 @@ RamdiskReadWriteReal(IN PIRP Irp,
// Get the MDL and check if it's mapped
//
Mdl = Irp->MdlAddress;
if (Mdl->MdlFlags & MDL_MAPPED_TO_SYSTEM_VA)
if (Mdl->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | MDL_SOURCE_IS_NONPAGED_POOL))
{
//
// Use the mapped address
@ -1280,7 +1280,7 @@ RamdiskGetPartitionInfo(IN PIRP Irp,
DeviceExtension->Cylinders;
PartitionInfo->HiddenSectors = DeviceExtension->HiddenSectors;
PartitionInfo->PartitionNumber = 0;
PartitionInfo->PartitionType = *((PCHAR)BaseAddress + 450);
PartitionInfo->PartitionType = PARTITION_FAT32; //*((PCHAR)BaseAddress + 450);
PartitionInfo->BootIndicator = (DeviceExtension->DiskType ==
RAMDISK_BOOT_DISK) ? TRUE: FALSE;
PartitionInfo->RecognizedPartition = IsRecognizedPartition(PartitionInfo->