mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- 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:
parent
4cdbf59086
commit
d69ea33500
1 changed files with 2 additions and 2 deletions
|
@ -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->
|
||||
|
|
Loading…
Reference in a new issue